Jump to content

clear the text of an existing inputbox


gcue
 Share

Recommended Posts

i have this

$username=GUICtrlCreateInput("",85,20,120,25, $ES_UPPERCASE);10

after a user makes that query id like to clear the contents of that input box automatically - ready for next query

tried to search help - no luck =/

Link to comment
Share on other sites

sure...

after the user inputs a username i write that user name to a machine (they have also specified).

RegWrite("\\" & GUICtrlRead($asset) & "\hklm\software\altiris\altiris agent\inventory", "PrimaryUser", "REG_SZ", "CGUSER\" & GUICtrlRead($username))

once the reg change has occured, id like to be able to clear the contents so the user can enter the next username/asset.

thanks!

Link to comment
Share on other sites

omg that was easy - thanks!

try putting this in your loop

case $msg=$submitquerybutton
guictrlsetdata($username,"")
whateverprocessingfunc()

of course you will have to adapt it to your gui.

is this what you meant?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...