Mutalgaettae Posted December 7, 2009 Posted December 7, 2009 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
DoktorTTM Posted December 7, 2009 Posted December 7, 2009 (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 December 7, 2009 by Shadowstar Molenoid Fan Girl! And fully fledged nerd-bird! And soon to be Cosplayer~
Mutalgaettae Posted December 7, 2009 Author Posted December 7, 2009 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
Developers Jos Posted December 7, 2009 Developers Posted December 7, 2009 Please stick with one thread per topic and try reading a little before asking questions. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
picea892 Posted December 7, 2009 Posted December 7, 2009 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")
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now