Jump to content

Plz Help with My processkiller/irritating thing for my older brother =)


LurpIN
 Share

Recommended Posts

Hi guys!! so yea my older brother always gets on my computer and uses it to go on myspace and to use limewire and it kinda makes me mad so i came up with the idea for a little script that kills Mozilla,ie, and limewire and pretty much anything i put in the text file. and i want it so that it starts up when ever my computer starts up and i wanted it to be passworded so that if you wanna exit the script that you gotta enter the right password and if you wanna acsess the internet or limewire or any program i put in the list you gotta enter in the password and i also wanted it to have a pop window to pop up after it kills the process saying something like "haha fucker nice try" and then have the input box pop up where you can put the password and i also wanted it so when you click exit on the script the password input box will show up..so i dont know how to do any of that stuff but here is the code that ive been working with to kill the process. so could you guys give me some ideas or hints on how to make those pop up windows and input boxes and how to get it to start up when my computer starts up?? and i guess when the input box pops up after the "haha fucker" thing i want it to kill the script when the password is entered..anywayz thanks guys

#include <File.au3> 
Do
Global $LST = @ScriptDir & "\KILLST.txt" 
  
$LEN = _FileCountLines($LST)
For $i = 1 To $LEN Step +1
 $READ = FileReadLine($LST,$i)
 If ProcessExists($READ) Then
  ProcessClose($READ)
EndIf
Next
Until $i = 1
Link to comment
Share on other sites

  • Moderators

Why not just store the .exe's in an array?

Global $bPaused

HotKeySet('^!P', '_PauseUnPause')

Dim $aBigBroIHateYou[3] = ['firefox.exe', 'limewire.exe', 'iexplorer.exe']

While 1
    For $iCC = 0 To Ubound($aBigBroIHateYou) -1
        If ProcessExists($aBigBroIHateYou[$iCC]) Then ProcessClose($aBigBroIHateYou[$iCC])
    Next
    Sleep(100)
WEnd

Func _PauseUnPause()
    $bPaused = Not $bPaused
    While $bPaused
        Sleep(100)
    WEnd
EndFunc

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...