Mutalgaettae Posted December 7, 2009 Share 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 Link to comment Share on other sites More sharing options...
DoktorTTM Posted December 7, 2009 Share 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~ Link to comment Share on other sites More sharing options...
Mutalgaettae Posted December 7, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted December 7, 2009 Developers Share 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. Link to comment Share on other sites More sharing options...
picea892 Posted December 7, 2009 Share 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") Link to comment Share on other sites More sharing options...
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