Jump to content

Can someone verify if this is good?

Recommended Posts

  • Developers

If ProcessExists("notepad.exe") Then
    MsgBox(0, "Example", "Notepad is running.")<---[B]instead of msgbox, how can i make the computer do "nothing" or like sleep kinda[/B]

and how can i add: " is process doesnt exist , then do BLAH"


While 1
    While ProcessExists("notepad.exe") 
; do here what you want to do when process doesn't exists

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
Live for the present,
Dream of the future,
Learn from the past.

Link to post
Share on other sites

If ProcessExists("notepad.exe") Then



MsgBox(0,"Title", "Message", "10")


You can put the While loop inside of the If statement so that it continues to sleep until the process doesn't exist any more. Make sure to change the "While 1" to "While ProcessExists("notepad.exe")" else it will not stop sleeping, and the script will never end.

Writing AutoIt scripts since

_DateAdd("d", -2, _NowCalcDate())
Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...