multiboxing script for chrome firefox or brave

Ask gaming related questions (AHK v1.1 and older)
asd
Posts: 6
Joined: 24 Jun 2022, 09:20

multiboxing script for chrome firefox or brave

Post by asd » 24 Jun 2022, 09:23

code should be

Code: Select all

w::
	Send, w to all tabs with name MULTIBOXER
 return

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

Re: multiboxing script for chrome firefox or brave

Post by mikeyww » 24 Jun 2022, 19:02

Code: Select all

#Include d:\utils\acc\Acc.ahk ; https://www.autohotkey.com/boards/viewtopic.php?f=6&t=26201

#IfWinActive ahk_exe chrome.exe
$w::sendToChromeTab("w", "MULTIBOXER")
#IfWinActive

sendToChromeTab(keys, tabTitle) {
 For each, oChild in Acc_Children(Acc_Get("Object", TABS := "4.1.1.2.1.1.1.1"))
  SendInput % Instr(oChild.accName(0), tabTitle) ? (keys, oChild.accDoDefaultAction(0)) : ""
}

asd
Posts: 6
Joined: 24 Jun 2022, 09:20

Re: multiboxing script for chrome firefox or brave

Post by asd » 25 Jun 2022, 12:32

i tried the code and it doesnt work maybe im using it wrong how do i use it?

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

Re: multiboxing script for chrome firefox or brave

Post by mikeyww » 25 Jun 2022, 13:03

Run Window Spy. Activate your Chrome tab of interest. Post a screenshot of Window Spy below. The script assumes that your cursor is already positioned in an edit control on each of the tabs of interest.

asd
Posts: 6
Joined: 24 Jun 2022, 09:20

Re: multiboxing script for chrome firefox or brave

Post by asd » 25 Jun 2022, 13:06

image.png
image.png (265.89 KiB) Viewed 1459 times

asd
Posts: 6
Joined: 24 Jun 2022, 09:20

Re: multiboxing script for chrome firefox or brave

Post by asd » 25 Jun 2022, 13:14

Attachments
Q.png
Q.png (475.12 KiB) Viewed 1150 times

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

Re: multiboxing script for chrome firefox or brave

Post by mikeyww » 25 Jun 2022, 13:21

You have to download that script as referenced, and then update the path in this script, to point to that one. That is how #Include works.

asd
Posts: 6
Joined: 24 Jun 2022, 09:20

Re: multiboxing script for chrome firefox or brave

Post by asd » 25 Jun 2022, 16:20

wanted a multibox script where i can see all tabs but thank you using it rn :D

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

Re: multiboxing script for chrome firefox or brave

Post by mikeyww » 25 Jun 2022, 21:16

If you just want to loop through windows instead of tabs, you can do something like this.

Code: Select all

WinGet, win, List, MULTIBOXER
Loop, %win% {
 WinActivate, % "ahk_id" win%A_Index%
 Send w
}

asd
Posts: 6
Joined: 24 Jun 2022, 09:20

Re: multiboxing script for chrome firefox or brave

Post by asd » 26 Jun 2022, 17:46

isnt that a w for every tab which has name multibox?

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

Re: multiboxing script for chrome firefox or brave

Post by mikeyww » 26 Jun 2022, 17:56

You can test it and find out. WinGet gets a list of windows. WinActivate activates a window. You can take your pick of the scripts here-- windows or tabs-- or combine them.

Post Reply

Return to “Gaming Help (v1)”