Jump to content

Recommended Posts

Posted

If Firefox is your default browser this should work for you.

#include <Process.au3>
$rc = _RunDos("start Http://www.autoitscript.com")


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Posted

How about something like this?

$s_URLNav = 'http://www.therks.com'

$s_Firefox = 'HKLM\SOFTWARE\Mozilla\Mozilla Firefox'
$s_FirefoxVersion = RegEnumKey($s_FireFox, 1)
If @error Then
    MsgBox(16, 'Error', 'Firefox not installed')
    Exit
EndIf

$s_FirefoxPath = RegRead($s_Firefox & '\' & $s_FirefoxVersion & '\Main', 'PathToExe')
If @error Then
    MsgBox(16, 'Error', 'Firefox not installed')
    Exit
EndIf

Run('"' & $s_FirefoxPath & '" ' & $s_URLNav)

Might need more error checking, but I'll leave that up to someone else. I'm not doing all the work.

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
×
×
  • Create New...