MIchaelfjsmith2 Posted August 16, 2014 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
water Posted August 16, 2014 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
MIchaelfjsmith2 Posted August 16, 2014 Author Posted August 16, 2014 Yes this is the full script. works perfect until compiled.
water Posted August 16, 2014 Posted August 16, 2014 BTW: What is pandora.exe? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
MIchaelfjsmith2 Posted August 16, 2014 Author Posted August 16, 2014 pandora has a desktop application called pandora one for users that pay for ad free subscription.
water Posted August 16, 2014 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Solution MIchaelfjsmith2 Posted August 16, 2014 Author Solution 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.
MIchaelfjsmith2 Posted August 16, 2014 Author 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.
water Posted August 16, 2014 Posted August 16, 2014 So you were killing yourself My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
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