StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | 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?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tia34531

18 Posts

Posted - 03/28/2017 :  20:11:40  Show Profile  Reply with Quote
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
2432 Posts

Posted - 03/28/2017 :  20:59:25  Show Profile  Visit Rob's Homepage  Reply with Quote
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  Reply with Quote
Thanks. I'll try.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2017 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000