MIchaelfjsmith2 Posted August 16, 2014 Share Posted August 16, 2014 Can anyone help me i have a simple script that once ran will just either start or kill Pandora depending on is the process exists or not. Script runs fine until compiled. Thanks, If ProcessExists("pandora.exe") Then ProcessClose("Pandora.exe") Else Run("D:\Program Files\Pandora\pandora.exe") EndIf Link to comment Share on other sites More sharing options...
water Posted August 16, 2014 Share Posted August 16, 2014 Is this the full script? I don't see anything that should stop it from running when being compiled. 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...
MIchaelfjsmith2 Posted August 16, 2014 Author Share Posted August 16, 2014 Yes this is the full script. works perfect until compiled. Link to comment Share on other sites More sharing options...
water Posted August 16, 2014 Share Posted August 16, 2014 BTW: What is pandora.exe? 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...
MIchaelfjsmith2 Posted August 16, 2014 Author Share Posted August 16, 2014 pandora has a desktop application called pandora one for users that pay for ad free subscription. Link to comment Share on other sites More sharing options...
water Posted August 16, 2014 Share Posted August 16, 2014 (edited) I suggest to add some MsgBox statements so you see where the script runs. If ProcessExists("pandora.exe") Then MsgBox(0, "", "ProcessExists") ProcessClose("Pandora.exe") Else MsgBox(0, "", "Starting") $iResult = Run("D:\Program Files\Pandora\pandora.exe") MsgBox(0, "", "Result of Run: " & $iResult) EndIF Edited August 16, 2014 by water 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...
Solution MIchaelfjsmith2 Posted August 16, 2014 Author Solution Share Posted August 16, 2014 Thanks for the advice after running the newly revised script it is coming up as the process already exists when in fact it doesn't. Link to comment Share on other sites More sharing options...
MIchaelfjsmith2 Posted August 16, 2014 Author Share Posted August 16, 2014 Thanks for all the help i figured out the issue stupid mistake. my script was called pandora.au3 when compiled it had naming conflict and killed it self off each time. Link to comment Share on other sites More sharing options...
water Posted August 16, 2014 Share Posted August 16, 2014 So you were killing yourself 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...
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