Sign in to follow this  
Followers 0
ARozanski

Password Look

3 posts in this topic

Hi, i am very new to AutoIt so any help will be much appreciated...

I want to create a GUI with all sorts of functions, one of them asks the user for the Username and password. What i want to do with the password is: When they enter the password into the input it hides it with "*' or dots...

I know there exists a function InputBox - but that creates a window on its own...which i do not want...is there an alternative methode??

CODE
#include <GUIConstants.au3>

$Head = GUICreate("Test", 1000,650)

;TABS*************************************************************

$Tabmenu = GUICtrlCreateTab( 10, 290,600,330 )

;TAB1--------

$Tab1 = GUICtrlCreateTabItem('Menu')

GUICtrlCreateLabel("Username:",20,355)

$Username = GUICtrlCreateInput("<Username>",80,353,150,20)

GUICtrlCreateLabel("Password:",250,355)

$Password = GUICtrlCreateInput("<Password>",310,353,150,20)

;END OF TAB1

;TAB2-----------

$Tab2 = GUICtrlCreateTabItem('Properties')

;END TAB2-------

GUICtrlCreateTabItem("")

;END TABS********************************************************

GUISetState(@SW_SHOW)

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

Case $GUI_EVENT_CLOSE

Exit

EndSwitch

WEnd

Thanks in advance...

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

The best method is to set the style of your input to $ES_PASSWORD

#Include <EditConstants.au3>
$Password = GUICtrlCreateInput("<Password>", 310, 353, 150, 20, $ES_PASSWORD)

:P

Edited by TehWhale

Share this post


Link to post
Share on other sites

That's really cool...thanks alot!!

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