This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General Discussion
 General Discussion
 Can I open a website in an existing chrome tab?
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

tia34531

18 Posts

Posted - 03/28/2017 :  20:11:40  Show Profile
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  Show Profile  Visit Rob's Homepage
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
Go to Top of Page

tia34531

18 Posts

Posted - 03/28/2017 :  21:06:44  Show Profile
Thanks. I'll try.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000