Jump to content

Need a Lock Utility


Recommended Posts

Posted

thats it! im gonna learn lol, where can i download a visual c++ trial program lol, i wanna try this out :P


Posted

WinSetOnTop("Input password to continue")
$bLoop = 1
While $bLoop = 1
   $passwd = InputBox("Input password to continue", "Please type in the password and click OK", "", "*",)
   If @error = 1 Then
      winactive("My Computer")
      winclose("My Computer")
      msgbox(1, "Wrong password". "Password incorrect")
   Else
     ; They clicked OK, but did they type the right thing?
       If $passwd <> "autoit" Then
           winactive("My Computer")
           winclose("My computer")     
    Else
           $bLoop = 0  ; Exit the loop - ExitLoop would have been an alternative too :)
       EndIf
   EndIf
WEnd

This work? slightly modified of input example

not totaly flawless off course

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...