Sign in to follow this  
Followers 0
BigBadWeirdo

password question

7 posts in this topic

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)

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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? :)

Edited by BigBadWeirdo

Share this post


Link to post
Share on other sites

Oh nevermind, i allready got it :)

Share this post


Link to post
Share on other sites

Do you have the line:

#include <GUIConstants.au3>

at the top of your script?


FootbaG

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

yes it all works now :)

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