Gui, Add, Text,, UserName: Gui, Add, Edit, vUserName, Gui, Add, Text,, PassWord: Gui, Add, Edit, VPassWord Password, Gui, Add, Button, gCreatNewUser, Create New UserName Gui, Add, Button, gLogIn, Log In Gui, Show,, Sign in Prompt Return ;--------------------------------- CreatNewUser: Gui, Submit IniWrite, %UserName%, C:\Documents and Settings\Owner\Desktop\programming tools\test scripts\password.ini, User, %UserName% IniWrite, %PassWord%, C:\Documents and Settings\Owner\Desktop\programming tools\test scripts\password.ini, Password, %PassWord% ;--------------------------------- LogIn: Gui, Submit IniRead, KnownUserName, C:\Documents and Settings\Owner\Desktop\programming tools\test scripts\password.ini, User, %UserName% IniRead, KnownPassWord, C:\Documents and Settings\Owner\Desktop\programming tools\test scripts\password.ini, Password, %PassWord% If KnownUserName = ERROR MsgBox Invalid Username If KnownPassWord = ERROR MsgBox Invalid Password Return ;_____________________________________Here is the same thing used for securing your scripts beyond an encryption__________________________________________________________________ Gui, Add, Text,, UserName: Gui, Add, Edit, vUserName, Gui, Add, Text,, PassWord: Gui, Add, Edit, VPassWord Password, Gui, Add, Button, gLogIn, Log In Gui, Show,, Sign in Prompt Return ;--------------------------------- LogIn: Gui, Submit If UserName <> YourUserName ;place your user name here { MsgBox Invalid Username } If PassWord <> YourPassWordSlashPassPhase ;Place your PW here, the longer the better { MsgBox Invalid Password Return }
Note, Tested, Edited, Untested
Use these if you want your scipt to be secure, but make sure your scipt is encypted if you botther useing these, and make sure you pw at encryptions is hard to hack, if I were me I would go after the source before I tryed getting thru this code as a gui.