metallica111 Posted September 17, 2006 Share Posted September 17, 2006 Sorry because my poor English I have a process Bkav2006.exe How can i code a program to when process Bkav2006.exe run then my program kill this process Run process Bkav2006.exe many times . My program always kill! Link to comment Share on other sites More sharing options...
AzKay Posted September 17, 2006 Share Posted September 17, 2006 Look at If...Then, ProcessExists(), And, ProcessClose() # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
metallica111 Posted September 17, 2006 Author Share Posted September 17, 2006 How can i loop it many time if I run many time process bkav.exe i need kill it all timees Link to comment Share on other sites More sharing options...
Pakku Posted September 17, 2006 Share Posted September 17, 2006 look at the while loop How can someone use Windows without using AutoIt?That one would properly don't know how to handle a computer!My scripts:Send files over internetKind of RSS reader3Draw ProUDF: convert a character string to a binary one and backCalculate PiCommand line downloader (Youtube/Google video)Set the transparency of a window just by hitting a key!Secure your pcOther things:My filemanMy profilePM me Link to comment Share on other sites More sharing options...
jvanegmond Posted September 17, 2006 Share Posted September 17, 2006 (edited) While 1 ProcessClose("Bkav2006.exe") Sleep(50);Optional time to wait before closing the process again. If no sleep is added CPU usage is at it's maximum. WEnd I suggest that you simply prevent the executable from running, especially if this is some sort of virus or spyware thing. Edited September 17, 2006 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
AzKay Posted September 17, 2006 Share Posted September 17, 2006 While 1 If ProcessExists("Bkav2006.exe") Then ProcessClose("Bkav2006.exe") Else Sleep(100) WEnd # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
jvanegmond Posted September 17, 2006 Share Posted September 17, 2006 Sorry to correct you but I see a likely error question coming up: While 1 If ProcessExists("Bkav2006.exe") Then ProcessClose("Bkav2006.exe") Else Sleep(100) EndIf WEnd github.com/jvanegmond Link to comment Share on other sites More sharing options...
AzKay Posted September 17, 2006 Share Posted September 17, 2006 Ah yes. Thanks # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
jvanegmond Posted September 17, 2006 Share Posted September 17, 2006 Anytime. github.com/jvanegmond Link to comment Share on other sites More sharing options...
metallica111 Posted September 18, 2006 Author Share Posted September 18, 2006 Thhank you very much !!! 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