Sign in to follow this  
Followers 0
Medic873

If Process Exists

3 posts in this topic

Okay im not sure how to do this but I want to make a program that will work somthing along these lines

while 1 = 1
if processexists ("u1006.exe")then
endprocess ("u1006.exe")
msgbox (1,"Anywhere +", "Sorry you can not run software to avoid company blocks");
endif
wend

how could I do this what would be the code to see if a process exixts and how to kill a process I know I can you a cmd command to kill a process but how can I find if a process is running.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

~

Edited by Mobius

Share this post


Link to post
Share on other sites

In the future, if you vaguely know what you need to do but not the exact terminology or method, check the help file first.

Open AutoIt Help File

Click on Index tab

Type "proc..."

- 2nd item shown: ProcessClose

- 3rd item shown: ProcessExists

Click on Search tab

Type "process", click "List topics"

- 5th item shown: Function ProcessClose

- 8th item shown: Function ProcessExists

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  
Followers 0