Jump to content
Sign in to follow this  
fury0n

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

Recommended Posts

fury0n

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

Share this post


Link to post
Share on other sites
iamtheky

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


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

Share this post


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
Sign in to follow this  

×