Author |
Topic |
|
tia34531
18 Posts |
Posted - 03/28/2017 : 20:11:40
|
Hello.
The two codes below acShellExecute("open", "www.google.com", "",0 , 1) acRunProgram("www.google.com", "", 0, 1) open the website in a new tab, if a chrome is running. But I want to open a website in an exiting chrome tab. Is this possible? |
Edited by - tia34531 on 03/28/2017 20:40:10 |
|
Rob
USA
2615 Posts |
Posted - 03/28/2017 : 20:59:25
|
You'd have to activate Chrome (if it's not the current window), then do
acSendKeys("^l") --Ctrl+L
That will set the focus to the Address Bar, then send keys or paste the URL and
acSendKey("~") --Enter |
|
|
tia34531
18 Posts |
Posted - 03/28/2017 : 21:06:44
|
Thanks. I'll try. |
|
|
|
Topic |
|
|
|