Jump to content

Recommended Posts

Posted

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)

 

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.

Posted

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)

 

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...