Help with multibox script

Ask gaming related questions (AHK v1.1 and older)
maarcolla
Posts: 1
Joined: 01 Mar 2024, 16:17

Help with multibox script

Post by maarcolla » 01 Mar 2024, 16:30

I'm playing a game where I need to farm a lot of gold, and I would like to do this on 2 accounts at the same time, is there any program where I can press, for example, the 'F7' key on game1 and it works at the same time on game2? I tested all wow based programs, and none work to me. Also, i tried do this with AHK.

Code: Select all

#IfWinActive, ahk_id 332036
~F8::
KeyWait F8
{
ControlSend,, {F8}, ahk_id 135920
Return
}

#IfWinActive, ahk_id 332036
~F7::
KeyWait F7
{
ControlSend,, {F7}, ahk_id 135920
Return
}

#IfWinActive, ahk_id 332036
~F4::
KeyWait F4
{
ControlSend,, {F4}, ahk_id 135920
Return
}
I used the ahk_id using the WindowsSpy, but not worked for me, anyone could help me with this?

P.S Sorry for my bad english.
P.S2 It's not for WoW.

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

Re: Help with multibox script

Post by mikeyww » 03 Mar 2024, 19:26

Welcome to this AutoHotkey forum!

Hard-coding HWND values predicts future failure because these values will change in future runs of those programs.

The script here works in Notepad on Win 11. Perhaps it is an example that you can test and then adapt.

Code: Select all

#Requires AutoHotkey v1.1.33.11
winTitle := "ahk_class Notepad"
ctl      := "RichEditD2DPT1"

#UseHook
#If WinExist(winTitle)
a::
b::
c::
SendEvent % key := "{" A_ThisHotkey "}"
ControlSend % ctl, % key
Return
#If
#UseHook Off
Some windows do not respond to ControlSend, so you can do a simpler test first. An elevated window may require an elevated script.

Post Reply

Return to “Gaming Help (v1)”