Acc.ahk alternative for activating firefox tab? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
haomingchen1998
Posts: 176
Joined: 20 Feb 2023, 16:37

Acc.ahk alternative for activating firefox tab?

13 Mar 2024, 19:38

I have multiple firefox window and tabs opened at once, and I need a way to loop through all tab names and activated the specific firefox window with "gmail" tab. @mikeyww has kindly created below code for my use case, however, one issue is that I kept getting below error when using Acc.ahk and it probably just means that this library is outdated.

Code: Select all

WinGet ff, List, ahk_exe firefox.exe
Loop % ff
 If InStr(JEE_FirefoxGetTabNames(ff%A_Index%), "Gmail") {
  WinRestore  % winTitle := "ahk_id" ff%A_Index%
  WinActivate % winTitle
  WinMove     % winTitle,, 100, 100, 500, 300
 }
 ; https://www.autohotkey.com/boards/viewtopic.php?f=6&t=26947
Image

I also tried code from below link, it also worked, but way too slow.
https://www.autohotkey.com/board/topic/19791-find-any-tab-by-name-in-any-firefox-window-fast-re-find/

Now I think I only have 2 options:
1. Either force this error message to not show, or using setTimer to press Yes for this error message automatically, because after I do that, it will activate that window just fine.
2. Find an alternative to Acc.ahk that's more recent, but I can't seem to find a replacement that works for my use case.

Any ideas will be greatly appreciated!
haomingchen1998
Posts: 176
Joined: 20 Feb 2023, 16:37

Re: Acc.ahk alternative for activating firefox tab?

14 Mar 2024, 10:06

Thank you for pointing me to this link! For people wondering the same thing, teadrinker's solution worked for me.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 253 guests