I am struggling to code script, that simulates a person holding down keyboard key '1' for 1 second.
I tried a lot, but it never do "the same" as a person can. In result there would be a lot of "11111111111"
This does not work as intended:
Code: Select all
#Persistent
a::
SendInput, {1 Down}
Sleep, 1000
SendInput, {1 Up}
return ;