Jump to content

(SOLVED)Repost, How do I start firefox browser in autoit


lostbit
 Share

Recommended Posts

I am trying to use run or send to launch firefox browser.

In windows 7 run window I type firefox and it starts.

I tried Run("firefox") I tried firefox.exe no joy.

I then tried to use the full path and I get errors.

Here I may not be using the proper path string.

Any help will be usefull.

Edited by lostbit
Link to comment
Share on other sites

Just a small enhancement..(to find the EXE with registry and fallback to the guessed path)

$FF=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe","")
if $FF == "" then $FF = @ProgramFilesDir & "\Mozilla Firefox\firefox.exe"
If FileExists($FF) Then
    MsgBox(4096, '', $FF & " Exists, press OK to start FF")
    Run($FF)
Else
    MsgBox(4096, $FF, "Does NOT exists")
EndIf
Edited by Tankbuster
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...