Jump to content

creating Custom User Prompt Like Vista/XP


HiSoftDev
 Share

Recommended Posts

hi friends, i am trying to make something like this (see image)

Posted Image

(This image is copied from HelpFile)

i want that before starting every time my app should give a GUI like in image and ask for the password.

can anyone tell me how to get images off all users and all user names? any idea and/or Example?

thanks for the help...

Edited by HiSoftDev
Link to comment
Share on other sites

i think this is very difficult, because you may need to get original password of windows which is very difficult. and also how will you know about the images used in user accounts?

why don't you try a simple like the following with your own password?

Password_Protect()
; Dated: Sep-23-2008
; WB: ChromeFan
Func Password_Protect()
    $Total_Counts = 3
    $Try = 1
    $File_Access =  "Disallowd"
    $Your_Password =  "ChromeFan"
    ConsoleWrite(""    & @CRLF)
    $InputBox_1 = InputBox( "Access Protected",  "Please Enter your password (Case sensitive)" & @CRLF & @CRLF & "My Program Name (Example)"& @CRLF & @CRLF &"Author: Your Name",  "",  "*")
    If $InputBox_1 == $Your_Password Then
        $File_Access =  "Granted"
        MsgBox(64,  "Password Accepted",  "Welcome," & @CRLF & @CRLF & @UserName & @CRLF & @CRLF & @ComputerName)
    Else
        Do
            $InputBox_2 = InputBox( "Access Denied",  "The Password provided by you is wrong."& @CRLF & @CRLF &"Please Reinter your password."& @CRLF & @CRLF &"Author: Your Name",  "",  "*")
            If $Your_Password = $InputBox_2 Then
                $File_Access =  "Granted"
                MsgBox(64,  "Password Accepted",  "Welcome," & @CRLF & @CRLF & @UserName & @CRLF & @CRLF & @ComputerName)
                ExitLoop
            EndIf
            $Try += 1
        Until $Try = $Total_Counts
    EndIf
    If $File_Access =  "Allowed" Then
        MsgBox(48, "Access Granted", "Some Text")
    Else
        MsgBox(48, "You can not access this program!",  "You have tried more then 3 times to enter the correct password."&@CRLF&"But the password was always wrong."&@CRLF&"Sorry! Program will now close.")
        Exit
    Return
    endif  
EndFunc ;==>_Password_Protect()
Website: www.cerescode.comForum: www.forum.cerescode.comIRC: irc.freenode.net , Channel: #Ceres--------------------Autoit Wrappers, Great additions to your script (Must See) (By: Valuater)Read It Befor Asking Question Click Here...--------------------Join Monoceres's Forums http://www.monoceres.se--------------------There are three kinds of people: Those who make things happen, those who watch things happen, and those who ask, ‘What happened?’” –Casey Stengel
Link to comment
Share on other sites

@HiSoftDev...You can find the images in the following folder:

XP: C:\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures

Vista: C:\ProgramData\Microsoft\User Account Pictures\Default Pictures

You can make a GUI very similar to the one you posted. Try it out...Post some code..

:)

Edited by DjDeep00
Link to comment
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
 Share

  • Recently Browsing   0 members

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