windows - Alternative to appactivate (so SendKeys works in background) -


this question has answer here:

i have written script , of course every 10 seconds 'my program' window activated send f9 key. however, i'd send f9 key every 10s 'my program' window without activating interupts work on other windows/browsers. need run continuously during day background process ideally. (the f9 key refreshes screen)

option explicit dim wshshell  set wshshell = wscript.createobject("wscript.shell")    wshshell.appactivate "my program"   wshshell.sendkeys "{f9}"   wscript.sleep (1000 * 10) loop 

as alex k. mentioned, sendkeys can send keystrokes foreground window, you're asking not possible vbscript.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -