Jump to content
Sign in to follow this  
Mutalgaettae

forcibly close an application

Recommended Posts

Mutalgaettae

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
DoktorTTM

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
Mutalgaettae

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
picea892

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.