Sending Commands to inactive window

Ask gaming related questions (AHK v1.1 and older)
Pen15x420
Posts: 2
Joined: 11 Oct 2017, 21:45

Sending Commands to inactive window

11 Oct 2017, 21:52

Hello,

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

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 157 guests