Sign in to follow this  
Followers 0
dscale

Opening website in Browser - Help

6 posts in this topic

I cannot figure out how to make this script work. If I delete the $link variable in $linktorun, the browser will open by itself. The thing is I want the link to open with the browser.

 

$link = "http://www.google.com"
$filePath = _PathFull("CocCoc\Browser\Application\Browser.exe", @LocalAppDataDir)
$linktorun = $filePath & $link

Run ($linktorun)

 

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

You want browser to open at a specific page, but you don't want to supply it a page?

EDIT:

OK I see.

Try...

$link = " http://www.google.com" ; notice space
$filePath = _PathFull("CocCoc\Browser\Application\Browser.exe", @LocalAppDataDir)
$linktorun = $filePath & $link

Run ($linktorun)

 

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

Willing to guess you might be missing a space between your app and your URL.  Try this...

$link = "http://www.google.com"
$filePath = _PathFull("CocCoc\Browser\Application\Browser.exe", @LocalAppDataDir)
$linktorun = $filePath & " " & $link

Run ($linktorun)

 

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

MuffinMan,

$linktorun = $filePath & " " & $link

This worked. Thank you.

Does anyone know how to make a wait for the webpage to load? I only know how to do this for internet explorer.

Edited by dscale

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0