Sign in to follow this  
Followers 0
TheWarLords

i Make Password and Logen and i need make it work

10 posts in this topic

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

Share this post


Link to post
Share on other sites



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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 Try

i Try but i fail ;)

Edited by TheWarLords

Share this post


Link to post
Share on other sites

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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 ;)

Share this post


Link to post
Share on other sites

like someone once said

MAY THE FARCE BE WITH YOU


[u]My dream is to have a dream...[/u]

Share this post


Link to post
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
Sign in to follow this  
Followers 0