AlmarM Posted November 16, 2007 Share 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. Link to comment Share on other sites More sharing options...
weaponx Posted November 16, 2007 Share Posted November 16, 2007 $result = MsgBox(4, "Clear", "Realy clear History?") If $result = 1 Then GUICtrlSetData($Edit_1, "", "") EndIf Link to comment Share on other sites More sharing options...
AlmarM Posted November 16, 2007 Author Share 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. Link to comment Share on other sites More sharing options...
weaponx Posted November 16, 2007 Share Posted November 16, 2007 Sorry, I was thinking OK / Cancel Link to comment Share on other sites More sharing options...
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