Dual Boxing game

Ask gaming related questions (AHK v1.1 and older)
plop
Posts: 2
Joined: 17 May 2021, 09:57

Dual Boxing game

Post by plop » 17 May 2021, 11:55

It works, if I only move a single toon on either window.
But ControlSend can somehow send to the wrong window.

an example would be this, moving window 2's toon forward for a bit.

Code: Select all

~MButton & e:: will move window 2 toon forward 
e:: will move window 1 toon forward 
pressing the above in succession will keep e down on window 1 - or lets say {e down} happens on window 1 but no {e up} on window 1 - in my mind window 1 shouldn't be affected by the ControlSend to window2

Code: Select all

~MButton & e::
{
ControlSend,,{e down}, %window2%
Sleep, 500
ControlSend,,{e up}, %window2%
Return
}

these are running:

Code: Select all

#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
ListLines Off
Process, Priority, , A
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1
SendMode Input
[Mod edit: [code][/code] tags added.]

any better way to send keypresses, or perhaps a way to enforce ControlSend?
any input appreciated, ty.

User avatar
mikeyww
Posts: 26882
Joined: 09 Sep 2014, 18:38

Re: Dual Boxing game

Post by mikeyww » 17 May 2021, 12:01

Your WinTitle might apply to more than one window. You can make it more specific by adding a class, process name, HWND, etc.

plop
Posts: 2
Joined: 17 May 2021, 09:57

Re: Dual Boxing game

Post by plop » 18 May 2021, 04:12

thanks, I'll test with more specific windows.

Funny thing is that at least 20 other ControlSend in the script works great and doesn't send into the wrong window.
This specific one also works great as long as I don't overlap key presses.
So Im still thinking its a funky issue with ControlSend / keydown / sleep.

Post Reply

Return to “Gaming Help (v1)”