Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Opening new tab in Chrome opens last closed tab!

$
0
0
I've been working on a script and part of it is to open a new tab in Google Chrome and then type in a web address. The Chrome shortcut to open a new tab is CTRL + T.
Here is the what I used:

[ autoit ]      
Send("^{T}")

However, this ended up opening the last closed tab, which would be CTRL + SHIFT + T. This code does not say to press shift...
I also tried this, but it didn't do anything:  

[ autoit ]      
Send("{RCTRL}" + "{T}")

And, then I tried this

[ autoit ]      
Send("{RCTRL down}") Send("{T}") Send("{RCTRL up}")

.. but it also just opened the last closed tab.

It's as if AutoIT is holding down the shift key while doing this! I'm pretty sure the shift key isn't stuck. I've rebooted the computer a few times and even tried on 2 other computers.

Viewing all articles
Browse latest Browse all 12506

Trending Articles