Sori 9 Posted September 7, 2015 AutoItSetOption("WinTitleMatchMode", 2) ;If Firefox is not open, open it with a new tab If ProcessExists("Firefox.exe") = 0 Then Run('"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -new-tab about:newtab') Else ;Switch to Firefox WinActivate("Mozilla Firefox") EndIf Specifically, line 5.If I run the au3 file, it will open firefox. But, if I compile the script and run the exe, it won't.No issues with winactivate in either case. sidenote:Not a big issues, since I can still use the au3 with my keyboard buttons, but I'm curious as to a real fix. Firefox.au3 If you need help with your stuff, feel free to get me on my Skype.I often get bored and enjoy helping with projects. Share this post Link to post Share on other sites
water 2,359 Posted September 7, 2015 In such a case you need to do some error checking.Does the process exist? What is the return value of "Run" or WinActivate? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Sori 9 Posted September 7, 2015 (edited) My momma must have dropped me on my head xDThe file I created is named, "firefox" so it's detecting itself. Where did the solved button go? Edited September 7, 2015 by Sori If you need help with your stuff, feel free to get me on my Skype.I often get bored and enjoy helping with projects. Share this post Link to post Share on other sites