So i am trying to make a simple script where i Press the F key and then about 5 seconds later the F9 key is pressed.
I have tried a ew things and i just can't seem to get it to work.
Could someone show me the light please
Press 1 key then another while in game.
Re: Press 1 key then another while in game.
Is this all that you need?
Code: Select all
~F::
Sleep, 5000
Send, {F9}
Return
Re: Press 1 key then another while in game.
Hi there
I have tried this but it does not seem to work, im not 100% but i think it has to use GetKeyState
I used one example that used that and it would press F9 instantly and i could not get it to wait.
I have tried this but it does not seem to work, im not 100% but i think it has to use GetKeyState
I used one example that used that and it would press F9 instantly and i could not get it to wait.
Re: Press 1 key then another while in game.
Sending a key like that is often ignored by games because the delay between down and up state is way too small(you can't press and release the key that fast no matter how hard you try)
Try this
~F::
KeyWait,F
Sleep, 5000
Send, {F9 Down}
Sleep,100
Send,>{F9 Up}
Return
Try this
~F::
KeyWait,F
Sleep, 5000
Send, {F9 Down}
Sleep,100
Send,>{F9 Up}
Return