autoitxp Posted October 26, 2012 Posted October 26, 2012 (edited) all i wanted to make sure if process in list and than return to true i m trying this way im not sure whether it's right If Not ProcessExists('myapp.exe') And $NameTo <> '' Then Run( @AppDataCommonDir &'myfolder'&'myapp.exe','', @SW_HIDE) ProcessWait('myapp.exe') If ProcessExists('myapp.exe') Then Return True Endif Edited October 26, 2012 by autoitxp
water Posted October 26, 2012 Posted October 26, 2012 Does it work the way you expect it to work? 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
autoitxp Posted October 26, 2012 Author Posted October 26, 2012 (edited) yes it works as expected but im expecting some other way to do like any other idea Edited October 26, 2012 by autoitxp
Moderators JLogan3o13 Posted October 26, 2012 Moderators Posted October 26, 2012 (edited) If it is working for you, why are you seeking to change it? Edited October 26, 2012 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
careca Posted October 26, 2012 Posted October 26, 2012 Example from help file: If ProcessExists("notepad.exe") Then MsgBox(0, "Example", "Notepad is running.") Else MsgBox(0, "Example", "Notepad is not running.") EndIf So... If Not ProcessExists('myapp.exe') And $NameTo <> '' Then Run( @AppDataCommonDir &'myfolder'&'myapp.exe','', @SW_HIDE) EndIf ;Missing this ProcessWait('myapp.exe') If ProcessExists('myapp.exe') Then MsgBox(4096, "Example", "running.") Else MsgBox(4096, "Example", "Not running.") Endif Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
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