Sign in to follow this  
Followers 0
kp3

Can someone help me. Close procces and then view

8 posts in this topic

#1 ·  Posted (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 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

Share this post


Link to post
Share on other sites



I get an Incorect function message for __IsPressed, do I need to be running the AU3 Beta?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

woow double post.. autoit was abit laggy :):P

Sorry.

Edited by aceloc

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Share this post


Link to post
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
Sign in to follow this  
Followers 0