Jump to content
Sign in to follow this  

HElp with Lockout program

Recommended Posts


heyg uys

if u saw my last post

i was trying to revamp a previous program someone released

it has one more flaw.... Control Alt Delete brings up Windwos Security

heres my code

how do i cancel Windows Security with Ctrl Alt Delete?

#include <GUIConstants.au3>
#include <String.au3>

Opt("WinTitleMatchMode", 4)
Opt("MouseCoordMode", 1)
Opt("CaretCoordMode", 1)
Opt("WinWaitDelay", 0)

Global Const $Password = InputBox("Enter Password", "Enter Password Here.", "", "*")
If @error Then Exit
Global Const $InputTime = 1000;<---------- EDIT THIS: This sets the time that you have to type the password
Global $Status = False
Global $oldmPos[4]
Global $cTHandle = TimerInit()
Global $oiText
Global Const $Width = 150
GLobal Const $Height = 100
Global Const $gHandle = GUICreate("Computer Locked!", $Width, $Height, -1, -1, $WS_CAPTION, $WS_EX_TOPMOST + $WS_EX_TOOLWINDOW)
Global Const $lHandle = GUICtrlCreateLabel("Input Password", 5, ($Height/2)-20, $Width-15)
Global Const $iHandle = GUICtrlCreateInput("", 5, $Height/2, $Width-15, -1, $ES_PASSWORD)


HotKeySet("!v", "Terminate")

Func Terminate()
Exit 0

While 1

$mPos = MouseGetPos()
$iText = GuiCtrlRead($iHandle)

If $mPos[0] <> $oldmPos[0] Or $mPos[1] <> $oldmPos[1] Then
WinMove($gHandle, "", $mPos[0]-($Width/2), $mPos[1]-($Height/2))

If Not WinActive($gHandle) Then
If TimerDiff($cTHandle) > 1000 Then
GUICtrlSetData($lHandle, "Enter Password")
If $iText == $oiText And $iText <> "" Then
GUICtrlSetData($lHandle, "Denied h4x0r!")
GUICtrlSetData($iHandle, "")
SoundPlay(@ScriptDir & "\Deny.wav", 0)
ElseIf $iText <> $oiText And $iText == $Password Then
GUICtrlSetData($lHandle, "Access Granted!")
WinSetTitle($gHandle, "", "Computer Unlocked!")
SoundPlay(@ScriptDir & "\Allow.wav", 1)
;~ SoundPlay(@ScriptDir & "\taunt1.wav", 1)
;~ SoundPlay(@ScriptDir & "\taunt2.wav", 1)
$oiText = $iText
$cTHandle = TimerInit()

$oldmPos = $mPos


If WinExists('Windows Task Manager') Then
WinClose('Windows Task Manager')



Share this post

Link to post
Share on other sites

You can't block Control+Alt+Delete.

Share this post

Link to post
Share on other sites

I dont want to BLOCK both Control alt delete

i jus wanna disable one of those 3

any one

to prevent Windows Security when you hit Ctrl Alt Del

its the only way outta my program

is the ANY way?

and is there a way to prevent anyone shutting off ur computer?

yes or no question

Edited by Nblufire12

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.