How to pause the script until a key is pressed in VBScript? I need something that would pause the flow of the program and wait until 'left_arrow' key is pressed.
VBS - How to pause a script until a key is pressed?
32.9k Views Asked by TypicalHog At
1
There are 1 best solutions below
Related Questions in VBSCRIPT
- Run VBScript from C# with hidden window and capture output
- Calculate if trend is up, down or stable
- How to click a plain button on a webpage using VBScript?
- Error when attempting to get all elements with specific Class
- Read Hyperion Planning webform XML with VBScript
- Force OK the Privacy warning message in macro enabled MS excel using VBA
- Swapping attributes in AD
- Find and Replace code between #region tags in .cs file
- VBS- Can I exit a VBS message box that repeats itself without going to the task manager or cmd?
- Alternative of IN keyword of SQL in Siebel Server scripting for search spec?
- How to find files and then PSFTP to local system?
- Object CRT in VB script
- How can I get a one liner xcopy command to run in vbscript?
- Get a process path with VBS
- How do I reload an ASP page with a new querystring?
Related Questions in CONSOLE
- Confusion about CTRL_SHUTDOWN_EVENT handling in DLLs and WM_QUERYENDSESSION
- C++: Re-use line printed to console
- Lock and Edit Button is Weblogic 12C admin console is not responding ,
- Error executing SSIS Package
- Eclipse console: revert line order
- Is there any way to count elements that are equal to "x" in 2D aray; C#
- Neither .on or .live functions are recognized
- Problems with UTF8 text in XE7 ReadLn command
- py2exe: Allow a console window to be either shown or hidden with a sys.argv
- Why does ArrayList.Sort() sorting by only first digit?
- Interactive scanf using pipe
- C# Program automation - Program hangs/doesn't work
- Uncaught SyntaxError: Unexpected token < in HTML - can't solve
- What’s the quickest, easiest way to execute a JavaScript file on a live web page?
- How to find wrong script
Related Questions in KEY
- Android Signature key differences between Old and New PC
- Java HashMap, hashCode() equals() - how to be consistent with multiple keys?
- Kaltura account settings error
- fetch json value with no key using jquery
- C++ Custom std::map<> key class causing memory violation
- How do I use php file() to access an array and echo specific keys?
- constructing key by bit shifting 3 integers in C
- How to get keystrokes with java outside of frames
- Keys in Perl hash disappeared
- Master Array compare csv
- Covering index and getting rid of Key Lookup
- How to add key pairs to object literals using loop--WITHOUT overriding existing entries?
- PHP Convert Array Including Key Rename
- Python: How to append to existing key of a dictionary?
- Python key error - for key in dictionary: dictionary[key]
Related Questions in WAIT
- Wait and Notify in Java threads for a given interval
- bash shell: Avoid alias to interpret $!
- How to make code wait X seconds after clicking a button before continuing?
- Waiting to take at least get 10 samples for PhoneStateListener [LISTEN_SIGNAL_STRENGTHS]
- Wait for a button click before proceeding
- Wait until the Ajax function is done
- java.lang.IllegalMonitorStateException whilst calling wait from synchronized block
- Waiting without Sleeping?
- Wait until all jQuery ajax calls are completed (done or rejected)
- What does Protractor browser.wait return if the condition never becomes true?
- How to make an MP3 file wait to play until after another MP3
- How to wait for a duration before a sequence is run?
- How to echo the missing selector in a CasperJS onWaitTimeout event handler?
- Is there standard implementation for thread block/resume in java SE?
- Checking and killing hanged background processes in a bash script
Related Questions in SLEEP
- Delphi and sleep function
- Clear labels, Images in WatchKit after didDeactivate (Glance and InterfaceController)
- Php schedule run a function after 10 minutes
- How to change the delay of sleep/timer thread in android during runtime?
- Compile error on linux (a simple demo code on concept of pipe)
- Timeout handle email php
- Running delayed jobs in loop
- Explain behavior of Unix sleep() function executed on Android
- Sleep Shiny WebApp to let it refresh... Any alternative?
- Will process lost wake-up chance in a preemptive kernel?
- Does sleep/nanosleep work by utilizing a busy wait scheme?
- Python time.sleep on line 2 happens before line 1
- VBS - How to pause a script until a key is pressed?
- How to keep track of time in python without sleeping?
- Sleeping the time difference
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You don't have a lot of choices. If you have a console script, and I'm assuming you do, you can read input from the user but it only registers when you press [ENTER]. So you could pause until the enter key is pressed. For example:
There's also the old
pausecommand from DOS days. However, shelling a new console window to runpausewould cause a second window to appear. You'd need to press a key in that window to return to your script. Probably not what you want.But apart from third-parties, VBScript has no methods to read keypresses at run-time.