kp3 Posted September 26, 2006 Share Posted September 26, 2006 (edited) #include <Misc.au3> Global $pass="PASSWORD";change PASSWORD to ur own password while 1 $dll = DllOpen("user32.dll") While 1 sleep (1) If _IsPressed("11", $dll) Then If _IsPressed("12", $dll) Then If _IsPressed("2E", $dll) Then ProcessExists("taskmgr.exe") ProcessClose("taskmgr.exe") $PID = ProcessExists("taskmgr.exe"); Will return the PID or 0 if the process isn't found. If $PID Then ProcessClose($PID) $passwd = InputBox("Security Check", "Enter your password.", "", "*") If $passwd = $pass then MsgBox(0, "Access Granted", "Correct Password.") Run("taskmgr.exe", "", @SW_MAXIMIZE) ENDIF ELSE ExitLoop Endif ENDIF EndIf WEnd DllClose($dll) WEnd It works sometimes and sometimes the taskmgr shows. And if i press ctrl alt del again it will show...? can someone fix this script? Edited September 26, 2006 by kp3 [s]My scripts =)Password protect process (with tray menu lol)Clickous meousDisable ctrl+alt+del and password protect folder...Andous herous lolKp3s security center v.1Click me[/s]Ok... You shouldnt use annyone of them cuz they use alot of memory and contain alot of errors and stuff.. I was a n00b :P Ignore it... And if u for some reason want to use them... Watch out for my realy bad spelling :I Link to comment Share on other sites More sharing options...
joedoe Posted September 26, 2006 Share Posted September 26, 2006 I get an Incorect function message for __IsPressed, do I need to be running the AU3 Beta? Link to comment Share on other sites More sharing options...
jvanegmond Posted September 26, 2006 Share Posted September 26, 2006 I believe _IsPressed is in the latest AutoIt release. Running beta is always a good option. github.com/jvanegmond Link to comment Share on other sites More sharing options...
kp3 Posted September 27, 2006 Author Share Posted September 27, 2006 annyone? [s]My scripts =)Password protect process (with tray menu lol)Clickous meousDisable ctrl+alt+del and password protect folder...Andous herous lolKp3s security center v.1Click me[/s]Ok... You shouldnt use annyone of them cuz they use alot of memory and contain alot of errors and stuff.. I was a n00b :P Ignore it... And if u for some reason want to use them... Watch out for my realy bad spelling :I Link to comment Share on other sites More sharing options...
joedoe Posted September 28, 2006 Share Posted September 28, 2006 Ok, thanks Manadar, I haven't had a need to run the Beta yet, but you are right I proubably should be, I will give some Feedback as soon as I cann kp3 Link to comment Share on other sites More sharing options...
kp3 Posted September 28, 2006 Author Share Posted September 28, 2006 ok thx =) [s]My scripts =)Password protect process (with tray menu lol)Clickous meousDisable ctrl+alt+del and password protect folder...Andous herous lolKp3s security center v.1Click me[/s]Ok... You shouldnt use annyone of them cuz they use alot of memory and contain alot of errors and stuff.. I was a n00b :P Ignore it... And if u for some reason want to use them... Watch out for my realy bad spelling :I Link to comment Share on other sites More sharing options...
AceLoc Posted September 28, 2006 Share Posted September 28, 2006 I get an Incorect function message for __IsPressed, do I need to be running the AU3 Beta?if im right its something like this; Func _IsPressed($hexKey) Local $aR, $bRv $hexKey = '0x' & $hexKey $aR = DllCall($user32, "int", "GetAsyncKeyState", "int", $hexKey) If $aR[0] <> 0 Then $bRv = 1 Else $bRv = 0 EndIf Return $bRv EndFunc [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
AceLoc Posted September 28, 2006 Share Posted September 28, 2006 (edited) woow double post.. autoit was abit laggy Sorry. Edited September 28, 2006 by aceloc [quote name='AceLoc']I gots new sunglasses there cool.[/quote] 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