hi guys!
99muppet you said:
It's a weirdly complicated piece If code
Not sure about that: sure you code with two inputbox:
Code: Select all
InputBox, user, Please Enter User Name
InputBox,pass, Please Enter Password
does the job but do you even know the meaning of
?
Documentation (
https://www.autohotkey.com/docs/commands/Gui.htm#Submit) says:
Saves the contents of each control to its associated variable (if any) and hides the window unless the NoHide option is present.
In the piece of code:
Code: Select all
Gui, Add, Edit, vUserName x72 y10 w170 h20 ,
"v" help us to set the associated output variable of the control (
https://www.autohotkey.com/docs/commands/Gui.htm#var)
so when
is called in UserName there will have the content of the control (edit control's text for instance). Btw did you even see a login using 2 gui, 2 inputbox like
yours?
so
means
Code: Select all
users[whatTheUserLetInTheFirstControlEditOfTheGUI]
and as you can see
Code: Select all
users := {"gucci":9999, "otherUser":7659}
if its "gucci" so 9999 and if it's "otheruser" 7659. Also note taht the advantage here is that we only create one variable (users) and we can retieves users as property of users
(btw the way if the name of your user content space it
does works in this case - for instance:
works
whereas
will display Error MsgBox
so 99muppets I really recommend using the first GUI that I sent - although you make good suggestions
and you've right we you're saying:
Concerning Gucci it's one of two things either you ask others helping you doing your script or your said something like "I need you to code" both are OK no problems ; in you first post of this thread there two ones so its ambiguous and
I don't no if you need
help (and if this case doing the job instead of you it is not helping you and if you actually need help post some piece of code please)