Trouble with KeyDown function

Aug 16, 2013 at 3:37 PM
Edited Aug 16, 2013 at 3:42 PM
I am having trouble simulating the holding of a key with the KeyDown function

it doesn't seem to hold the key.

i attempted to do this in Notepad and it only seems to print one E, therefore not being held down however if i do this with KeyDown on SHIFT it does make the letter capital.

So is it actually working but notepad not picking it up?
Aug 19, 2013 at 12:05 AM
Hi There,

What you need to do is call SimulateKeyPress() in a loop while you want the keypresses to be repeated, most likely with a pause between the key presses.

Hope this helps.

Sep 9, 2013 at 2:10 PM
Edited Sep 9, 2013 at 2:11 PM
oh great thank you :) any chance of an example loop snippet? (sudo will do)