Chrome TAB

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
HSEIVANE
Junior Coder
Posts: 33
Joined: Thu Jan 02, 2020 2:52 am

Chrome TAB

Post by HSEIVANE » Fri Jan 03, 2020 11:21 pm

Is there any way to focus or open a chrome tab?

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Chrome TAB

Post by Dorian (MJT support) » Mon Jan 06, 2020 11:34 am

Yes, depending on what you want to do, some of these options might help :

SetFocus an existing tab :

Code: Select all

SetFocus>Google - Google Chrome
SetFocus using a wildcard :

Code: Select all

SetFocus>Google*
Open a new tab (use n instead of t to open a new window) :

Code: Select all

SetFocus>Google Chrome*
press ctrl
send>t
release ctrl
Or simply open this URL in your default browser :

Code: Select all

ExecuteFile>http://www.google.com
Yes, we have a Custom Scripting Service. Message me or go here

HSEIVANE
Junior Coder
Posts: 33
Joined: Thu Jan 02, 2020 2:52 am

Re: Chrome TAB

Post by HSEIVANE » Mon Jan 06, 2020 1:54 pm


User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Chrome TAB

Post by Dorian (MJT support) » Mon Jan 06, 2020 2:43 pm

This article might help, but in addition could it be a timing issue? In other words, is the script looking for the window slightly before it actually exists?

Tools/View System Windows will help you troubleshoot.
Yes, we have a Custom Scripting Service. Message me or go here

HSEIVANE
Junior Coder
Posts: 33
Joined: Thu Jan 02, 2020 2:52 am

Re: Chrome TAB

Post by HSEIVANE » Mon Jan 06, 2020 7:16 pm

Not working yet.

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Chrome TAB

Post by Dorian (MJT support) » Tue Jan 07, 2020 10:26 am

Still the same error? What have you tried? Can you post a screenshot of the tab open in Chrome?

Have you tried identifying the window/tab by dragging the crosshair to it, as per this video?
Yes, we have a Custom Scripting Service. Message me or go here

HSEIVANE
Junior Coder
Posts: 33
Joined: Thu Jan 02, 2020 2:52 am

Re: Chrome TAB

Post by HSEIVANE » Tue Jan 07, 2020 3:54 pm

Solved using image recognition

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Chrome TAB

Post by Dorian (MJT support) » Wed Jan 08, 2020 1:55 pm

Thank you. It was much easier once we received your video and were able to give specific advice relating to it.
Yes, we have a Custom Scripting Service. Message me or go here

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