ARozanski Posted October 19, 2008 Share Posted October 19, 2008 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... Link to comment Share on other sites More sharing options...
TehWhale Posted October 19, 2008 Share Posted October 19, 2008 (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) Edited October 19, 2008 by TehWhale Link to comment Share on other sites More sharing options...
ARozanski Posted October 19, 2008 Author Share Posted October 19, 2008 That's really cool...thanks alot!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now