I have been using this code to send repeatedly 2 keys into a game. However, if the script is active and I go onto a different window, It will hit the keys. I only want it to hit the 1 and f key on my inactive game window. Can someone help me code this so it sends it to ONLY the inactive window? I have 0 knowledge at all on coding. Thank you so much!!!
Code: Select all
Tab::
SetTimer, Send_1, 2500
SetTimer, Send_f, 2000
Return
Send_1:
Send 1
Return
Send_f:
Send f
Return
Pause:: Pause
Esc:: ExitApp