Jump to content
Sign in to follow this  
Bokkie

Masked editing.

Recommended Posts

Bokkie

A no-brainer I'm sure, but how do I set up an input text field that masks user input as in a password entry?

Edit: It looks like InputBox handles masked password data entry? Ideally I want to keep all my edit fields on the same form rather than have a mix-and-match of form fields and InputBox's.

Edited by Peter Hamilton-Scott

Share this post


Link to post
Share on other sites
Valuater

maybe

#include <GUIConstants.au3>

GUICreate(" My GUI", 320,120, @DesktopWidth/2-160, @DesktopHeight/2-45)
$file = GUICtrlCreateInput ( "", 10,  5, 300, 20, $ES_PASSWORD)
$btn = GUICtrlCreateButton ("Ok", 40,  75, 60, 20)
GUISetState () 

$msg = 0
While $msg <> $GUI_EVENT_CLOSE
       $msg = GUIGetMsg()
       Select
           Case $msg = $btn
               exitloop
       EndSelect
Wend

MsgBox (4096, "drag drop file", GUICtrlRead($file))

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
Bokkie

Thanks. I shall try that at the office tomorrow.

Share this post


Link to post
Share on other sites
Valuater

Welcome

8)


NEWHeader1.png

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  

×