themax90 Posted July 17, 2006 Share Posted July 17, 2006 (edited) Ok I know it's been a LONG time since I have posted here a script. Because I am now getting a virus off my grandfathers computer as well, I decided to make this utility. #cs ---------------------------------------------------------------------------- AutoIt Version: 3.1.1.130 Author: Max Gardner; AutoIt Smith(king.of.all@comcast.net) Modes : With Graphics Without Graphics --> ProcessList OnExit HotKeys(Without Graphics): F1 = Write current processes to Log.txt at @ScriptDir Esc = Exit Program #ce ---------------------------------------------------------------------------- It has two modes, with or without graphics. Without graphics is very primitive, uses hotkey to spool into a file. Also has OnExit list option. With graphics has ProcessKill, Find Window, and Refresh using a List and I would prefer it. Okay, heres the updates. Updates when process is killed. Multiple Process Killing Tells if it were unable to kill Added a few lines that update the array and the MaxProcesses amount so there will be no errors. Unlimited processes. Previous Downloads # 1 : 4 Previous Downloads # 2 : 39 Previous Downloads # 3 : 100 See my Fileman: http://www.autoitscript.com/fileman/users/AutoIt%20Smith/ If ask why I didn't use ProcessWaitClose here is my answer: I want to make sure the process is killed, so it trys to kill it multiple times. If it cannot kill in $TopTime (in miliseconds) then it will warn you it was not killed and go on with it's script life. AutoIt Smith Edited August 21, 2006 by AutoIt Smith Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 18, 2006 Moderators Share Posted July 18, 2006 Nice Job Smith, although... Changing Global $MaxProcesses from 50oÝ÷ ÚÚºÚ"µÍÛØ[ ÌÍÓX^ØÙÜÙÈHPÝ[ ØÙÜÓÝ JHHoÝ÷ ۥƯy©Þ®º+¢ybí·Õ«¢+ØÀÌØí1¥ÍÑY¥Ýl ÀÌØíQɬ´Ä¤t if you have more than 50 processes running... 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...
jvanegmond Posted July 18, 2006 Share Posted July 18, 2006 Smith, i don't mean to be negative, but i seem to have a negative day. Why don't you use a Virus-scanner, and if needed a install script for the virus-scanner? I know virusses often hook on a DLL or existing Exe, so this won't do you much good... github.com/jvanegmond Link to comment Share on other sites More sharing options...
themax90 Posted July 18, 2006 Author Share Posted July 18, 2006 (edited) @Manadar What is your problem? Some Virii cannot be caught by a virus scanner. Plain and simple. This was the case for my father and grandfather. This works perfectly for me, and you shouldn't be saying how it won't do ME good in my PERSONAL situations. It is a small script, to be commented ON the script, and NOT on what I use it for. I'm loosing my patience with these kids. @Smoke_N Thank you, I never looked at it that way, I will make a function to automatically update that because the number changes... Edit 1 : Added a few lines that update the array and the MaxProcesses amount so there will be no errors. Unlimited processes. See above for update. Edited July 20, 2006 by AutoIt Smith Link to comment Share on other sites More sharing options...
jvanegmond Posted July 18, 2006 Share Posted July 18, 2006 I see, I offer my apologies then. It's a nice script. github.com/jvanegmond Link to comment Share on other sites More sharing options...
themax90 Posted July 18, 2006 Author Share Posted July 18, 2006 I see, I offer my apologies then. It's a nice script.Thank you. Sorry if I may have flied off the handle, but I have not received a virus that has been caught and I've cleaned up atleast 25+ different virii all that were not found by any Virus Scanner program. This allows my to track processes, or in the case of an auto-shutdown, the w/o graphics OnExit option will allow me to log the process/es that shut down the computer and delete it and all things linked to it.It is difficult not for me to get bugged when someone tells me how I should use MY script. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 18, 2006 Moderators Share Posted July 18, 2006 Also noticed an issue if you select No / No then your stuck in an endless loop, should maybe exit there? 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...
themax90 Posted July 18, 2006 Author Share Posted July 18, 2006 It's not an endless loop. If you press F1, it will ProcessList into Log.txt. To exit you need to right click on the tray icon, and press EXIT. Link to comment Share on other sites More sharing options...
jvanegmond Posted July 18, 2006 Share Posted July 18, 2006 This allows my to track processes, or in the case of an auto-shutdown, the w/o graphics OnExit option will allow me to log the process/es that shut down the computer and delete it and all things linked to it.You could include in the script a way to kill a process by name as soon as it exists, to prevent a possible shutdown. Would this be a good thing to do?It would also tick me off if someone told me how to use my script actually. github.com/jvanegmond Link to comment Share on other sites More sharing options...
themax90 Posted July 18, 2006 Author Share Posted July 18, 2006 As of now, it would invade personal privacy to make something like that. Unless you paused and asked the user if the process can be ran. Link to comment Share on other sites More sharing options...
mike1305 Posted July 18, 2006 Share Posted July 18, 2006 I tried to run the program and it states that it can't find the GUIListView.au3 include file. Amp Energy Drink: the official sponsor of me scripting at 2AM. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 18, 2006 Moderators Share Posted July 18, 2006 I tried to run the program and it states that it can't find the GUIListView.au3 include file.Run it using Beta....http://www.autoitscript.com/forum/index.php?showtopic=23823 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...
mike1305 Posted July 18, 2006 Share Posted July 18, 2006 (edited) Run it using Beta....http://www.autoitscript.com/forum/index.php?showtopic=23823I did, but it still didnt work. I had to jerry-rig the installation so it didnt install into its own 'beta' folder so the include folder would be seen by the autoit.exe file. What does this program do other than mimic the windows process manager? No offense (I could never make something like that) but what other functions does it posess? Edited July 18, 2006 by mike1305 Amp Energy Drink: the official sponsor of me scripting at 2AM. Link to comment Share on other sites More sharing options...
themax90 Posted July 18, 2006 Author Share Posted July 18, 2006 It is a primitive tool. It can view ALL processes, and get there PID's, as well as match windows. Something CtrlAltDel can't always do. As well as the OnExit function for virus catching. Windows Process Manager changes in every different year OS. This will stay the same, for example, in WinMe, it will list every single thing running instead of the user only things. Link to comment Share on other sites More sharing options...
mike1305 Posted July 18, 2006 Share Posted July 18, 2006 (edited) It is a primitive tool. It can view ALL processes, and get there PID's, as well as match windows. Something CtrlAltDel can't always do. As well as the OnExit function for virus catching.Windows Process Manager changes in every different year OS. This will stay the same, for example, in WinMe, it will list every single thing running instead of the user only things.cool! Thankfully I don't have much experience in ME. I had it on a computer here at work for a while until I went crazy. What is the OnExit function, and how is it used?edit: nvm. Edited July 18, 2006 by mike1305 Amp Energy Drink: the official sponsor of me scripting at 2AM. Link to comment Share on other sites More sharing options...
=sinister= Posted July 19, 2006 Share Posted July 19, 2006 Nice script! how bout adding a refresh every time you kill a process? Case $msg = $Kill ProcessClose($Processes[1]) ProcessClose($Processes[2]) PList() Link to comment Share on other sites More sharing options...
themax90 Posted July 19, 2006 Author Share Posted July 19, 2006 Didn't think about it. Thank you and keep the ideas coming so I can make a 1.1 release Link to comment Share on other sites More sharing options...
death pax Posted July 19, 2006 Share Posted July 19, 2006 How about adding either checkboxes or selecting multiple processes, to kill the dual programs that restart each other Link to comment Share on other sites More sharing options...
themax90 Posted July 20, 2006 Author Share Posted July 20, 2006 Okay, heres the updates. Updates when process is killed. Multipul Process Killing Tells if it were unable to kill Added a few lines that update the array and the MaxProcesses amount so there will be no errors. Unlimited processes. See first post for update. Link to comment Share on other sites More sharing options...
=sinister= Posted July 30, 2006 Share Posted July 30, 2006 I'm getting errors when trying to find the process window and kill a process. 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