TheWarLords Posted April 22, 2012 Share Posted April 22, 2012 i went Login and Password work i Need Write Login 123 if i write it 12345 say wrong Try again in and if i write it 123 and chick ok say Login correct and i went Passwrod 123 if write it 123 say correct if write it 12345 say Try again Help me if can #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=Pass.kxf $Form2 = GUICreate("L&P", 169, 106, -1, -1, 0) GUISetBkColor(0x000000) $PasswordEdit = GUICtrlCreateInput("password", 48, 40, 73, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD)) GUICtrlSetBkColor(-1, 0xFF0000) $ButtonOk = GUICtrlCreateButton("&OK", -2, 64, 171, 17, $BS_NOTIFY) $EnterPassLabel = GUICtrlCreateLabel("pass", 8, 44, 26, 17, 0) GUICtrlSetBkColor(-1, 0xFF0000) $LoginEdit = GUICtrlCreateInput("", 48, 8, 73, 21) GUICtrlSetBkColor(-1, 0xFF0000) GUICtrlSetCursor (-1, 0) $Label1 = GUICtrlCreateLabel("Login", 8, 8, 30, 17) GUICtrlSetBkColor(-1, 0xFF0000) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Link to comment Share on other sites More sharing options...
water Posted April 22, 2012 Share Posted April 22, 2012 Do you need LogonID and Password to protect your script or do you want to connect to another system? Means: Where is the ID and password stored you want to compare the entered values with? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
TheWarLords Posted April 22, 2012 Author Share Posted April 22, 2012 Do you need LogonID and Password to protect your script or do you want to connect to another system?Means: Where is the ID and password stored you want to compare the entered values with?went ID and Password to protect My script Link to comment Share on other sites More sharing options...
water Posted April 22, 2012 Share Posted April 22, 2012 Then this might help you. You create an MD5 hash of your password and store this password in your script. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
TheWarLords Posted April 22, 2012 Author Share Posted April 22, 2012 Then this might help you. You create an MD5 hash of your password and store this password in your script.But That not me went i went ID and Pass Not Pass Only or cant ID ? Link to comment Share on other sites More sharing options...
water Posted April 22, 2012 Share Posted April 22, 2012 Take ID and password, concatenate it to a single string and create the hash which you then store in your script. To compare with the ID and password the user entered do the same and then compare the two hashes. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
TheWarLords Posted April 22, 2012 Author Share Posted April 22, 2012 (edited) Take ID and password, concatenate it to a single string and create the hash which you then store in your script. To compare with the ID and password the user entered do the same and then compare the two hashes.i dont understand but will Tryi Try but i fail Edited April 22, 2012 by TheWarLords Link to comment Share on other sites More sharing options...
water Posted April 23, 2012 Share Posted April 23, 2012 First thing you need to do is understand what the hash thing is all about and if it does what you need. Second thing is to code it in AutoIt. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
TheWarLords Posted April 23, 2012 Author Share Posted April 23, 2012 First thing you need to do is understand what the hash thing is all about and if it does what you need.Second thing is to code it in AutoIt.i know now i maked it work now Thanks in any thing Link to comment Share on other sites More sharing options...
acidman Posted April 27, 2012 Share Posted April 27, 2012 like someone once saidMAY THE FARCE BE WITH YOU [u]My dream is to have a dream...[/u] Link to comment Share on other sites More sharing options...
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