Sending a key in multiple inactive windows - Gaming

Ask gaming related questions (AHK v1.1 and older)
User avatar
Reloaded
Posts: 283
Joined: 25 Aug 2017, 08:48

Re: Sending a key in multiple inactive windows - Gaming

21 Sep 2017, 06:33

You know you dont said whats your Problem xD
darkcloud123
Posts: 5
Joined: 09 Sep 2017, 23:25

Re: Sending a key in multiple inactive windows - Gaming

21 Sep 2017, 06:38

This is the 2 client game ahk class


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 ! :D :D :D :D :)


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

}
darkcloud123
Posts: 5
Joined: 09 Sep 2017, 23:25

Re: Sending a key in multiple inactive windows - Gaming

21 Sep 2017, 06:39

Reloaded wrote:You know you dont said whats your Problem xD
This is the 2 client game ahk class


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 ! :D :D :D :D :)


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

}

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: peter_ahk and 92 guests