I also tried writing my own program, and it still does not execute the keyboard commands, only the mouse.
My keyboard is a logitech!
Thanks!

Moderators: JRL, Dorian (MJT support)
Code: Select all
VBSTART
VBEND
//focus notepad - put a few lines in notepad and set cursor to first line
SetFocus>Notepad*
//Press Down Arrow for 10 seconds
VBEval>Timer,stTime
Let>StopTime=stTime+10
Label>send_loop
Send>w
VBEval>Timer,elapsed
If>elapsed<StopTime,send_loop
Code: Select all
VBSTART
VBEND
//Key codes at http://www.mjtnet.com/vkcodes.htm
Let>VK_W=87
Let>ExtendedKey=1
Let>KeyUp=2
//focus notepad - put a few lines in notepad and set cursor to first line
SetFocus>Notepad*
//Press W for 10 seconds
VBEval>Timer,stTime
Let>StopTime=stTime+10
Label>press_loop
LibFunc>user32.dll,keybd_event,r,VK_W,0,0,0
VBEval>Timer,elapsed
If>elapsed<StopTime,press_loop
//Now release W
Let>FLAGS={%ExtendedKey% OR %KeyUp%}
LibFunc>user32.dll,keybd_event,r,VK_DOWN,0,%KeyUp%,0