MyEarth Posted July 23, 2015 Share Posted July 23, 2015 Hello, i'll explain. I need to check if a software is lauched for a third time, in that case i need to close the process related to the software ( is for automating software purpose, a conflict )Example:1) Notepad is open and then close, OK no problem +12) Notepad is open and close, OK no problem +13) Notepad is open ( is the third time! ) then ProcessCloseThere is no risk of multiple istance so in theory is "simply" but i can't resolve. Thanks Link to comment Share on other sites More sharing options...
JohnOne Posted July 23, 2015 Share Posted July 23, 2015 ProcessExists()a flag variablea counter variableA loopSimple logic. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
jguinch Posted July 23, 2015 Share Posted July 23, 2015 While ProcessExists("notepad.exe") ProcessClose("notepad.exe") WEnd Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
kylomas Posted July 24, 2015 Share Posted July 24, 2015 (edited) MyEarth,Not enough info: 1) Notepad is open and then close, OK no problem +1 2) Notepad is open and close, OK no problem +1 Opened by a specific process or any instance of NotePad? 3) Notepad is open ( is the third time! ) then ProcessClose Over what period of time or set of events?kylomas Edited July 24, 2015 by kylomas clarification Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill 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