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
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!