Jump to content
Sign in to follow this  
bar code boy

Help with GUICtrlSetData

Recommended Posts

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






$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

Share this post

Link to post
Share on other sites

#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
$btn = GUICtrlCreateButton ("Ok", 40,  75, 60, 20)

GUISetState () 
$msg = 0
While $msg <> $GUI_EVENT_CLOSE
       $msg = GUIGetMsg()
           Case $msg = $btn

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

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  

  • Create New...