Firefox tab window focus problem

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
katalonija2
Junior Coder
Posts: 21
Joined: Thu Mar 10, 2011 6:49 pm

Firefox tab window focus problem

Post by katalonija2 » Thu Mar 10, 2011 7:03 pm

How to focus tab window with name for example "[macro]" when i have two other apps with same name becouse open doc files are named macro?

So, i have three apps with "[macro]" text in title.
I tried "[macro] - Mozilla Firefox" but can not be found even if it is in tools>view system windows.

I can focus firefox,but there are other tabs...

------------------------------------------
I do not use VBscript,only macros internal commands.


P.S.I tried [macro] - Mozilla Firefox* as maybe child is problem...nothing...


What is best macro method (non vb) for focusing windows of app.
And how to focus javacript:xxx....x...x.x.x.x popup window with combo box to fetch what is in pulldown option menu?

User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Post by Rain » Sat Mar 12, 2011 5:39 pm

You can't focus hidden tabs.

What you need to do is scroll through the tabs with the hotkeys CTRL+Tab and use IfWindowOpen.

Something Like this

Code: Select all

Label>ScrollTabs
Wait>1
SetFocus> - Mozilla Firefox*
Press CTRL
Press Tab
Release CTRL
Wait>1
IfWindowOpen>[macro] - Mozilla Firefox
//Do Something if it's the correct tab
Endif
Goto>ScrollTabs

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts