How do I auto close the browser tab when the macro finishes running?


#1

How do I auto close the browser tab when the macro finishes running?Preformatted text


#2

You can do this with two selectWindows commands:

  • selectWindow | TAB=0 (Switch back to the tab you want to be on, for example 0 = most left tab)
  • selectWindow | TAB=CLOSEALLOTHER (close all other tabs)

#3

Thanks Timo,

What I would like to do, is just kill the tab that I am on, not the other tabs. How can I do this?


#4

This can not be done yet. May I ask why do want to kill “only 1” tab? And once the tab is closed, in which tab should the macro continue?


#5

I work on cases, when the Macro is finished, the case is done and that tab can be closed – there must be some way?

maybe incorporating the chrome shortcut CTRL + W


#6

Is there not some way to let the program us run the following keyboard command:

CTRL + W << that will close the TAB


#7

Not yet, but soon. Stay tuned for the release of the XType command :slight_smile:


#8

Does this work yet? – the close tab thing?


#9

Yes,… using Xtype you send send the keystrokes:

XType | ${KEY_CTRL+KEY_W}


Close one Tab only