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
Post a Comment