AlmarM Posted November 16, 2007 Posted November 16, 2007 Hey I have a question I have: Case $nMsg = $Button_2 MsgBox(4, "Clear", "Realy clear History?") GUICtrlSetData($Edit_1, "", "") What I want is that: If user presses Yes the script will do the GUICtrlSetData() If user presses No I want nothing to happen. I think its easy to solve but I cant figure it out -AlmarM- Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.
weaponx Posted November 16, 2007 Posted November 16, 2007 $result = MsgBox(4, "Clear", "Realy clear History?") If $result = 1 Then GUICtrlSetData($Edit_1, "", "") EndIf
AlmarM Posted November 16, 2007 Author Posted November 16, 2007 (edited) Ty it was: $Check_Yes_No = MsgBox(4, "Clear", "Realy clear History?") If $Check_Yes_No = 6 Then GUICtrlSetData($Edit_1, "", "") EndIf But thanks to u I found it EDIT: 6 = Yes Button 7 = No Button Edited November 16, 2007 by AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.
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