vbscript - VBS - How to pause a script until user presses a key? -


how can implement wait key function in vbs ? need pause script , when user presses left_arrow key continue program.

you don't have lot of choices. if have console script, , i'm assuming do, can read input user registers when press [enter]. pause until enter key pressed. example:

wscript.echo "press [enter] continue..."  ' read dummy input. call not return until [enter] pressed. wscript.stdin.readline  wscript.echo "done." 

there's old pause command dos days. however, shelling new console window run pause cause second window appear. you'd need press key in that window return script. not want.

but apart third-parties, vbscript has no methods read keypresses @ run-time.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -