bar code boy Posted July 26, 2006 Share Posted July 26, 2006 With great fear and trepidation I enter the hallowed halls of this forum for I know what happens to one who does not search for the answers to life first before asking those who are far more knowledgeable than I. Please have mercy on this poor ignorant fool. So after days of searching the forum for my answer I come to you with my question which is: I have a GUI input that I wish to erase the masked password text entered into it when the OK button is clicked. (Please have pity on me for am but a week old in AutoIt world.) $Input_1 = GuiCtrlCreateInput("", 5, 1, 300, 40, $ES_PASSWORD) ;creation of input field GUICtrlSetBkColor(-1,0x00FF00) ; Green GUISetFont(14,800) Lines-O-Code Lines-O-Code Lines-O-Code Lines-O-Code $Input_1 = '' GUICtrlSetData($Input_1,"",'') 1. I have tried several combinations for things to reset the data in the GuiCtrlCreateInput area back to (nul) but I have not been successful. 2. I have tried to highlight the un-erased text and type in the password again but this time my input is not accepted. Since this probably has a simple solution I did not post more of the code. If anyone needs to see more of it please ask. Thanks so very much for your help, Bar code boy Link to comment Share on other sites More sharing options...
BigDod Posted July 26, 2006 Share Posted July 26, 2006 #include <GUIConstants.au3> GUICreate(" My GUI input acceptfile", 320,120) $Input_1 = GuiCtrlCreateInput("", 5, 1, 300, 40, $ES_PASSWORD);creation of input field GUICtrlSetBkColor(-1,0x00FF00); Green GUISetFont(14,800) $btn = GUICtrlCreateButton ("Ok", 40, 75, 60, 20) GUISetState () $msg = 0 While $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg() Select Case $msg = $btn GUICtrlSetData($Input_1,"") EndSelect Wend Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother 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