now...
i have firefox with many tabs.
i want to check if one of them tabs is named "the worst site ever".
if i allready have this tab - focus on it.
if i dont have this tab - open it in the same window.
possible? how?
how to find a url on firefox with multi tabs
Started by
ofir
, Apr 20 2006 02:14 PM
4 replies to this topic
#1
-
Posted 20 April 2006 - 02:14 PM
AFAIK, not possible...
Firefox doesn't follow most Windows API rules, it draws its own portable interface, so automating it is hard.
Your best chance of doing this, if you always switch to the same sites, is to do an ImageSearch... on start of tab, as their size can change.
Firefox doesn't follow most Windows API rules, it draws its own portable interface, so automating it is hard.
Your best chance of doing this, if you always switch to the same sites, is to do an ImageSearch... on start of tab, as their size can change.
#2
-
Posted 20 April 2006 - 03:38 PM
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Settitlematchmode, 2 f1:: WinGetActiveTitle, StartingTitle loop { IfWinExist, Firefox Winactivate, Firefox ifWinExist, the worst site ever break else Send {Control down}{Tab}{Control Up} Sleep 200 IfWinExist, %StartingTitle% break }
#3
-
Posted 20 April 2006 - 03:43 PM
I forgot the site name was shown in the title bar...
That's clever! It does some flickering, but it does the job.
Beware, you can have two tabs with same title around the target tab...
That's clever! It does some flickering, but it does the job.
Beware, you can have two tabs with same title around the target tab...
#4
-
Posted 20 April 2006 - 04:08 PM
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
actually it goes like this :
#g:: IfWinExist, Firefox Winactivate, Firefox Settitlematchmode, 3 WinGetActiveTitle, StartingTitle loop { ifWinExist the worst site ever - Mozilla Firefox { Send {Browser_Refresh} return } else Send {Control down}{PgDn}{Control Up} sleep 50 IfWinExist, %StartingTitle% MsgBox, 1, FireFox, the worst site ever on FireFox not exist. open? IfMsgBox, Cancel break IfMsgBox, Ok { Run, firefox.exe "http://www.website.com", ,max break } } return
#5
-
Posted 24 April 2006 - 07:35 AM