Jump to content

Recommended Posts

  • Moderators
Posted

While ProcessExists("notepad.exe")
    ProcessClose("notepad.exe")
WEnd
This is a good example, but keep in mind you are continuously enuming the process list here, where as if you do it the way I have in the other example, you enum it once.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted

This is a good example, but keep in mind you are continuously enuming the process list here, where as if you do it the way I have in the other example, you enum it once.

Do you mean it runs continuously until the script exits, right?

Posted

Do you mean it runs continuously until the script exits, right?

Will it work if the process I want to close is AutoIt.exe to avoid multiple instances of the same? Or there's some third way to achieve that?

Many thanks.

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
×
×
  • Create New...