shaamaan Posted July 28, 2004 Posted July 28, 2004 i have gui with guisetcontrol-edit and i need to refresh the contents of edit with pushing the button how can i do that??? thanks a lot
Josbe Posted July 28, 2004 Posted July 28, 2004 A simple script, created with AutoBuilder. GuiCreate("Updating an EDIT", 190,46) $button_1 = GUISetControl("button", "Add >", 10, 10, 50, 20) GUISetControlNotify() $edit_1 = GUISetControl("edit", 1, 60, 10, 60, 20, 0) GuiShow() While 1 sleep(100) $msg = GuiMsg(0) Select Case $msg = -3 Exit Case $msg = $button_1 $nEd= GUIRead( $edit_1 ) GUIWrite( $edit_1, -1, "") GUIWrite( $edit_1, -1, $nEd + 1) EndSelect WEnd Exit AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
shaamaan Posted July 28, 2004 Author Posted July 28, 2004 A simple script, created with AutoBuilder. GuiCreate("Updating an EDIT", 190,46) $button_1 = GUISetControl("button", "Add >", 10, 10, 50, 20) GUISetControlNotify() $edit_1 = GUISetControl("edit", 1, 60, 10, 60, 20, 0) GuiShow() While 1 sleep(100) $msg = GuiMsg(0) Select Case $msg = -3 Exit Case $msg = $button_1 $nEd= GUIRead( $edit_1 ) GUIWrite( $edit_1, -1, "") GUIWrite( $edit_1, -1, $nEd + 1) EndSelect WEnd Exitthanks a lot, your help was realy helpful :-)
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