Jump to content

Recommended Posts

Posted

You can read registry like this :

#include <Constants.au3>

Opt("MustDeclareVars", 1)

RunBrowser()

; return PID of the process
Func RunBrowser()
  Local $sPath = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe", "")
  If Not @error Then Return Run($sPath)
  $sPath = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE", "")
  If @error Then Exit MsgBox($MB_SYSTEMMODAL, "Error", "No browser available")
  Return Run($sPath)
EndFunc   ;==>RunBrowser

 

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
  • Recently Browsing   0 members

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