Jump to content

Close mspaint.exe as soon as it opens up, how?


Recommended Posts

So I'm very, very new to AutoIt and I'm trying to figure out how to use ProcessClose to close processes as soon as they start.

Just to learn, I'm trying with mspaint. What would it say to close mspaint.exe as soon as it opens up?

Thanks,

fury0n

Link to comment
Share on other sites

The processlist function in the helpfile provides an example of detecting notepad and closing it, you should be able to work from there forward.

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...