Jump to content

Opening website in Browser - Help


Recommended Posts

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)

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

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