Jump to content
Sign in to follow this  
dscale

Opening website in Browser - Help

Recommended Posts

dscale

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
JohnOne

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
MuffinMan

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
dscale

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.