Hi everyone , i decided to share some little home-made creation.
This is a pc locker.
I know i could do it in a faster and easyer way , i just figured it now that i'm posting it.
This is a pc locker.
HTML Code:
#include <GUIConstantsEx.au3> #include <SliderConstants.au3> #include <WindowsConstants.au3> #include <Misc.au3> #include <ScreenCapture.au3> Opt ("GuicloseOnEsc",1) $SW = @DesktopWidth $SH = @DesktopHeight MsgBox (0,"Slider","Combination is '100,'20','70'") _ScreenCapture_Capture(@TempDir & "\Temposlide.jpg") $Form1 = GUICreate("The locker.", 615, 104, -1, -1,$WS_POPUP, $WS_EX_TOPMOST) $1 = GUICtrlCreateSlider(0, 0, 612, 31, $GUI_SS_DEFAULT_SLIDER) GUICtrlSetCursor (-1, 0) $2 = GUICtrlCreateSlider(0, 35, 612, 31, $GUI_SS_DEFAULT_SLIDER) GUICtrlSetCursor (-1, 0) $3 = GUICtrlCreateSlider(0, 70, 612, 31,$GUI_SS_DEFAULT_SLIDER) GUICtrlSetCursor (-1, 0) GUISetState(@SW_SHOW) $Pic = GUICreate("TheLocker2",$SW,$SH,0,0,$WS_POPUP,$WS_EX_TOPMOST) GUICtrlCreatePic(@Tempdir & "\TempoSlide.jpg", 0 , 0 , $SW, $SH) GUISetState(@SW_SHOW) WinActivate ($Form1) While 1 $Msg = GUIGetMsg() Select Case $Msg = $GUI_EVENT_CLOSE ExitLoop EndSelect If _Ispressed ("11") And _IsPressed ("12") And _IsPressed ("2E") Then _Taskkill() EndIf If _Ispressed ("12") Then Send ("{ALT}") EndIf _KeyPass() WEnd Func _KeyPass() If _IsPressed ("0D") Then $4 = GUICtrlRead ($1) $5 = GUICtrlRead ($2) $6 = GUICtrlRead ($3) $Combo = $4 & $5 & $6 If $Combo = "1002070" Then WinSetOnTop ($Form1,"",0) WinSetOnTop ($Pic,"",0) Sleep (500) MsgBox(64,"Info","Combination is right , good continuing. .",1.5) Exit Else WinSetOnTop ($Form1,"",0) WinSetOnTop ($Pic,"",0) Sleep (500) MsgBox(64,"Info","Combination wrong, retry.",1.5) WinSetOnTop ($Form1,"",1) WinSetOnTop ($Pic,"",1) EndIf Endif EndFunc Func _Taskkill() ProcessWait ("taskmgr.exe") Sleep(500) ProcessClose("taskmgr.exe") EndFunc