Sign in to follow this  
Followers 0
Nbanonimous

HElp with Lockout program

6 posts in this topic

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)

GUISetState()

HotKeySet("!v", "Terminate")

Func Terminate()
Exit 0

EndFunc;==>Terminate
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))
EndIf

If Not WinActive($gHandle) Then
WinActivate($gHandle)
EndIf
;~
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!")
Sleep(50)
GUIDelete($gHandle)
SoundPlay(@ScriptDir & "\Allow.wav", 1)
;~ SoundPlay(@ScriptDir & "\taunt1.wav", 1)
;~ SoundPlay(@ScriptDir & "\taunt2.wav", 1)
Exit
EndIf
$oiText = $iText
$cTHandle = TimerInit()
EndIf

$oldmPos = $mPos

Sleep(1)

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


MouseMove(512,430)

WEnd

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

#6 ·  Posted (edited)

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  
Followers 0