Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #11981 > unrolled thread

How to check if script was started while SHIFT or CTRL was being pressed ?

Started by"R.Wieser" <address@not.available>
First post2018-10-03 10:07 +0200
Last post2018-10-03 10:07 +0200
Articles 1 — 1 participant

Back to article view | Back to microsoft.public.scripting.vbscript


Contents

  How to check if script was started while SHIFT or CTRL was being pressed ? "R.Wieser" <address@not.available> - 2018-10-03 10:07 +0200

#11981 — How to check if script was started while SHIFT or CTRL was being pressed ?

From"R.Wieser" <address@not.available>
Date2018-10-03 10:07 +0200
SubjectHow to check if script was started while SHIFT or CTRL was being pressed ?
Message-ID<pp1td3$1rq2$1@gioia.aioe.org>
Hello all,

Sometimes I've got the need to let a certain script do something a bit 
different, without wanting to have to answer a yes/no message box each time. 
So, I thought of starting the script while a so-called modifier key (SHIFT, 
CTRL) was being pressed.  Those two worked (ALT didn't).  But I do not see 
any possibility to check the *status* [1] of a key in the script (or ask the 
script how it was started).   Does anyone have an idea how to do that ?

[1] I know of the "WScript.StdIn.Read(1)" method, but that one will wait 
until a key is actually pressed - and won't respond to any of the modifier 
keys.

Regards,
Rudy Wieser

[toc] | [standalone]


Back to top | Article view | microsoft.public.scripting.vbscript


csiph-web