Jump to content

password question


Recommended Posts

Uh this question may sound a bit noobie, but i am a noob so don't mind :">

What i want to know is how to make an InputBox in a GUI passworded, so that you can only see the *** thingies :)

Someone please tell me :evil:

oh and if you need it, here's the inputbox i want to be passworded:

$wachtwoord = GUICtrlCreateInput("", 115, 125, 200, 20)
Link to comment
Share on other sites

What i want to know is how to make an InputBox in a GUI passworded, so that you can only see the *** thingies :)

What you'll want to look into is the style parameter of GUICtrlCreateEdit(). Take a look at the link on that page of the help file for more information. :evil:

Regards,

Alex Peters

Link to comment
Share on other sites

Wow i thought i have it but it still doesn't work, my code now is:

$wachtwoord = GUICtrlCreateEdit("", 115, 125, 200, 20, $ES_PASSWORD)

Uh can someone tell me what i'm doing wrong? :)

When I started with AutoIt, this had me stumped. AutoIt selects a default set of styles if you leave the styles field blank. If you do however set your own style/s, AutoIt does not automatically include its defaults.

Adding an extra constant should fix your problem:

$wachtWoord = guiCtrlCreateEdit("", 115, 125, 200, 20, $GUI_SS_DEFAULT_EDIT + $ES_PASSWORD)

Regards,

Alex

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...