Sign in to follow this  
Followers 0
Mutalgaettae

forcibly close an application

5 posts in this topic

i want to create a program, if a pixel change, it forcibly closes a program...

i know how to detect the pixel, but what is the code to colse a certain application

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

If you are running under any Vista, or XP Pro/Media Center, then you can close it with the command line.

Taskkill /f /im ProcessName.exe
Edited by Shadowstar

Molenoid Fan Girl! And fully fledged nerd-bird! And soon to be Cosplayer~

Share this post


Link to post
Share on other sites

i did this

While 1

$var1 = PixelSearch ( 1127, 914, 1242, 955, 0xEBEBEB )

If NOT $var1 Then

Taskkill /f /im ProcessName.exe

EndIf

Sleep(30000)

WEnd

yes. i am a noob

Share this post


Link to post
Share on other sites

I would use winkill or processclose, but have included a method to use taskkill.

WinKill("[CLASS:Notepad] ", "")
ProcessExists("notepad.exe")

#include <Process.au3>
$rc = _RunDos("Taskkill /f /im Notepad.exe")

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