Jump to content
Sign in to follow this  
gatsbysamericandream

Another firefox question :\

Recommended Posts

gatsbysamericandream

All I want is a way to start firefox and get it to navigate to a webpage on start up.

Sort of like _IECreate("google.com") would just create a window with google. I need it with firefox. PPPPPLLLLLLEEEEEEEEEEEEEAAASSEE!!!! ;)

Share this post


Link to post
Share on other sites
BigDod

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

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


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites
therks

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.

Share this post


Link to post
Share on other sites
gatsbysamericandream

Wow thanks all! That was awesomely helpful.

Share this post


Link to post
Share on other sites
benners

Wow thanks all! That was awesomely helpful.

could you just not use
Run(@ProgramFilesDir & "\Mozilla Firefox\firefox.exe Your Website")

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.