SENDING KEY IN MULTIPLE WINDOWS GAME

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
darkcloud123
Posts: 5
Joined: 09 Sep 2017, 23:25

SENDING KEY IN MULTIPLE WINDOWS GAME

18 Sep 2017, 09:44

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

}
User avatar
KuroiLight
Posts: 327
Joined: 12 Apr 2015, 20:24
Contact:

Re: SENDING KEY IN MULTIPLE WINDOWS GAME

21 Sep 2017, 12:58

Typically you would use ControlSend but if that doesn't work you could try activating the other window, sending the key, then reactivating the previous window.
Please put you code in blocks, makes it easier to read
Windows 10, Ryzen 1600, 16GB G.Skill DDR4, 8GB RX 480 | [MyScripts][MySublimeSettings] [Unlicense][MIT License]
01/24/18
[/color]

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: OrangeCat and 301 guests