Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

how to find a url on firefox with multi tabs


  • Please log in to reply
4 replies to this topic
ofir
  • Guests
  • Last active:
  • Joined: --
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?

PhiLho
  • Moderators
  • 6850 posts
  • Last active: Jan 02 2012 10:09 PM
  • Joined: 27 Dec 2005
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.
Posted Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")

Greg
  • Members
  • 245 posts
  • Last active: Jun 02 2006 05:39 PM
  • Joined: 22 Dec 2005
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 

         

    

}


PhiLho
  • Moderators
  • 6850 posts
  • Last active: Jan 02 2012 10:09 PM
  • Joined: 27 Dec 2005
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...
Posted Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")

ofir
  • Guests
  • Last active:
  • Joined: --
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