Sign in to follow this  
Followers 0
gcue

clear the text of an existing inputbox

5 posts in this topic

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 =/

Share this post


Link to post
Share on other sites



can you post more of the script or explain in more detail what you are wanting? Right now it just sounds like you want to put it in a loop.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
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!

Share this post


Link to post
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?

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