windows - Execute a Program and send key commands while the computer is locked/not sign in via VB Script -


im looking workaround/solution problem below.

i have program launching , sending key commands via vbscript so:

set wshshell = wscript.createobject ("wscript.shell") wshshell.run "c:\images\employee-copyblob2file.exe", 1 wscript.sleep 500 wshshell.sendkeys "%c" wscript.sleep 30000 wshshell.sendkeys "%x" 

it works great, problem need run, or this, while computer locked or not signed in (it on)

normally use command line pass program parameters/arguments, program in question not have options built in.

the way can figure out automate doing script above, need work while computer locked.

would appreciate help, stuck.

(i open method can think of @ point)

this on windows computer, linux/bash stuff out.

to more specific, need open program in screen shot, select copy blob file (hence %c) , when finished (the time delay) exit (%x)

enter image description here


Popular posts from this blog