Sori Posted September 7, 2015 Share 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. Link to comment Share on other sites More sharing options...
water Posted September 7, 2015 Share 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Sori Posted September 7, 2015 Author Share 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. 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