Send input to multiple game windows?

Ask gaming related questions (AHK v1.1 and older)
shoopie
Posts: 1
Joined: 14 Aug 2019, 21:46

Send input to multiple game windows?

14 Aug 2019, 21:49

Hey. I'm literally brand new to this kind of stuff so bare with me. Long story short, I want to play multiple instances of a game at the same time, but moving every character individually to one place is a chore, so I'm looking for some simple way to take my movements from one window of the game, and do the same thing in every other window at roughly the same time. Even if it isnt AHK and its some other program thats fine. I just know a lot of people talk about using AHK for this stuff. Any help would be appreciated.
User avatar
Dumitas
Posts: 167
Joined: 14 Dec 2017, 21:32

Re: Send input to multiple game windows?

16 Aug 2019, 19:28

Try:

WinGet
ControlSend
KeyWait

I'm just returning to AHK and too rusty to explain but if you read and search all of this will point you to the right way.

Code: Select all

WinGet, GameWinId, List, Game Name


W::
KeyWait, W, D
ControlSend,, W, ahk_id %GameWinId1%
ControlSend,, W, ahk_id %GameWinId2%
ControlSend,, W, ahk_id %GameWinId3%
Return

A::
KeyWait, A, D
ControlSend,, A, ahk_id %GameWinId1%
ControlSend,, A, ahk_id %GameWinId2%
ControlSend,, A, ahk_id %GameWinId3%
Return

S::
KeyWait, S, D
ControlSend,, S, ahk_id %GameWinId1%
ControlSend,, S, ahk_id %GameWinId2%
ControlSend,, S, ahk_id %GameWinId3%
Return

D::
KeyWait, D, D
ControlSend,, D, ahk_id %GameWinId1%
ControlSend,, D, ahk_id %GameWinId2%
ControlSend,, D, ahk_id %GameWinId3%
Return
Image

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 133 guests