gatsbysamericandream Posted December 1, 2006 Posted December 1, 2006 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!!!!
BigDod Posted December 1, 2006 Posted December 1, 2006 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
Helge Posted December 1, 2006 Posted December 1, 2006 Requires one of the latest betas : ShellExecute("www.google.com")
therks Posted December 1, 2006 Posted December 1, 2006 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. My AutoIt Stuff | My Github
gatsbysamericandream Posted December 2, 2006 Author Posted December 2, 2006 Wow thanks all! That was awesomely helpful.
benners Posted December 2, 2006 Posted December 2, 2006 Wow thanks all! That was awesomely helpful.could you just not use Run(@ProgramFilesDir & "\Mozilla Firefox\firefox.exe Your Website")
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now