morejava Posted November 16, 2019 Share Posted November 16, 2019 Hey all. Is there a way to say IF they have Chrome open this, ELSEIF they don't have Chrome open in IE. Thanks for your help. Case $Button6 ShellExecute("https://www.website.com/test") Link to comment Share on other sites More sharing options...
Developers Jos Posted November 16, 2019 Developers Share Posted November 16, 2019 Moved to the appropriate forum. Moderation Team morejava 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Nine Posted November 16, 2019 Share Posted November 16, 2019 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 morejava 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
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