Close active tab Chorme

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

Close active tab Chorme

Post by HSEIVANE » Sat Jan 18, 2020 3:21 pm

I want to close the active tab in chrome...how I can do it?

DreamTheater
Newbie
Posts: 19
Joined: Mon Oct 14, 2019 6:23 am

Re: Close active tab Chorme

Post by DreamTheater » Sun Jan 19, 2020 11:03 pm

Ensure focus is set on the Chrome window then press CTRL+F4 to close a single tab.

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

Re: Close active tab Chorme

Post by HSEIVANE » Mon Jan 20, 2020 12:12 am

How can you focus on certain chrome tab? What is the code for F4?

User avatar
Grovkillen
Automation Wizard
Posts: 1131
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Close active tab Chorme

Post by Grovkillen » Mon Jan 20, 2020 8:16 am

RTFM
Let>ME=%Script%

Running: 15.0.27
version history

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

Re: Close active tab Chorme

Post by Dorian (MJT support) » Mon Jan 20, 2020 10:00 am

Grov makes a good point, the manual should be considered your "Macro Scheduler Bible". However, knowing where to start always helps, as there's a lot of information in there.

I suggest reading up on Press.

So, if I had Bing open in Chrome and just wanted to close that tab, I'd do this :

Code: Select all

setfocus>Bing*
press ctrl
press f4
release ctrl
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: Close active tab Chorme

Post by HSEIVANE » Mon Jan 20, 2020 12:57 pm

The problem I have with Tabs is that many times they change the name because they report something like the amount of pending messages and sometimes they change the favicom

I use the online help and try to understand, so I am in the group of beginners.

I already resolved to close the tab.

Thanks a lot

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