HiSoftDev Posted September 25, 2008 Posted September 25, 2008 (edited) hi friends, i am trying to make something like this (see 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 September 25, 2008 by HiSoftDev
ChromeFan Posted September 25, 2008 Posted September 25, 2008 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
HiSoftDev Posted September 25, 2008 Author Posted September 25, 2008 thanks for it but i don\'t need this because i can code similar thing easily. i need as in my first post. can you help me about that?
DjDeep00 Posted September 25, 2008 Posted September 25, 2008 (edited) @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 September 25, 2008 by DjDeep00
7121 Posted September 25, 2008 Posted September 25, 2008 not to be off topic but why do u want that to startup everytime you run an app? o_0, there's always prevention software and firewalls... unless it's just for kicks hahah :-D
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now