Paulie Posted March 4, 2006 Share Posted March 4, 2006 (edited) EDIT:Technically its more like running from the startup :"> Hello I am kinda a noob to the AutoIt community however i Was wondering if there was a way I could have a function running in the backround from wen the computer starts up to close a certain process whenever it is active Situation: My Comp has an annoying little Spyware/Virus that randomly pops up a window that has an ok button in it, but it can be stoped every time by C-A-Ding it whenever it comes up, but it gets old after a whil having to push Control... Alt... Delete... Find the process... and end task. So knowing Autoit has the ability to use the "ProcessClose" thingy or w/e. I just need a way to have it run from the startup and whenever the window opens, close the procees that runs it. Thanks in advance for help Sorry if im posting in the wrong tread Note, I did search the forums ut i just couldnt find the answer to my particular problem Ty again Edited March 4, 2006 by Paulie Link to comment Share on other sites More sharing options...
cdkid Posted March 4, 2006 Share Posted March 4, 2006 quick guess here: $process = "The_Name_Of_My_Process.exe" While 1 sleep(500) if processexists($process) then processclose($process) endif WEnd --hope this helps ~cdkid AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
BlazeLondon Posted March 4, 2006 Share Posted March 4, 2006 quick guess here: $process = "The_Name_Of_My_Process.exe" While 1 sleep(500) if processexists($process) then processclose($process) endif WEnd --hope this helps ~cdkid Surely it would be a better idea to remove the malware / trojan? http://housecall.trendmicro.com Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 4, 2006 Moderators Share Posted March 4, 2006 (edited) quick guess here: $process = "The_Name_Of_My_Process.exe" While 1 sleep(500) if processexists($process) then processclose($process) endif WEnd --hope this helps ~cdkidI think he has this, he just wants it to run at the start up of his PC. This question has been asked several times, I'm suprised your search venture didn't turn anything up. Had you thought of putting it in the StartUpDir? Edit: Used the Search: Used the word "startup": Came up with this: http://www.autoitscript.com/forum/index.ph...ndpost&p=153797 Edited March 4, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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