Code: Select all
1ST CLIENT:
ahk_class Afx:00400000:8:00010003:01900011:00121A37
2ND CLIENT:
ahk_class Afx:00400000:8:00010003:01900011:008C18A7
I CREATED A BOT BUT IT SEND ONLY THE ACTIVE WINDOWS. Can anybody help me how to send a keys in different client game or windows game inactive?? Thanks a lot !
PROBLEM:
1. When i press F9 i want to send it to 2 inactive windows game client
2. I don't know how to make it work but i provide the 2 ahk_class of the client game
3. Only the F9 hotkey i want to send to other windows of game
MsgBox Welcome!
Gui, font,bold cDA4F49
Gui, Add, Text, x65 y5, Welcome!
Gui, font,
Gui, font,bold
Gui, Add, Text, x5 y20, How to Use:
Gui, font,
Gui, Add, Text, x5 y40, F9 = Auto Skill
Gui, font,
Gui, Add, Text, x5 y60, Windows + Z = Auto Attack
Gui, font,bold
Gui, Add, Text, x5 y80, How to Stop:
Gui, font,
Gui, Add, Text, x5 y100, Ctrl + S = Close Bot
Gui, font,
Gui, Add, Text, x5 y120, F9 = Stop Auto SKill
Gui, font,
Gui, Add, Text, x5 y140, Windows + Z = Stop Auto Attack
Gui, Show, w220 h180, Hello!
^s::ExitApp
F9::
WinActivate
If State=1
State=Off
else
State=1
SetTimer SendKey, %State%
Return
SendKey:
Send 111[-][-][-][-][-][-][-][-][-][-][-][-][-][-] 222[-][-][-][-][-][-][-][-][-][-][-][-][-][-] 333[-][-][-][-][-][-][-][-][-][-][-][-][-][-] 444[-][-][-][-][-][-][-][-][-][-][-][-][-][-] 555[-][-][-][-][-][-][-][-][-][-][-][-][-][-] 666[-][-][-][-][-][-][-][-][-][-][-][-][-][-] 777[-][-][-][-][-][-][-][-][-][-][-][-][-][-] 888[-][-][-][-][-][-][-][-][-][-][-][-][-][-] 999[-][-][-][-][-][-][-][-][-][-][-][-][-][-] 000[-][-][-][-][-][-][-][-][-][-][-][-][-][-]
Return
#MaxThreadsPerHotkey 3
#z::
#MaxThreadsPerHotkey 1
if keep_winz_running = y
{
keep_winz_running = n
return
}
; Otherwise:
keep_winz_running = y
Loop,
{
MouseClick, right
Sleep, 1500 ;This means the script will wait 1.5 secs
if keep_winz_running = n ; The user signaled the loop to stop.
break ; break out of the loop
}