MightyWeird Posted September 15, 2021 Share Posted September 15, 2021 Hi, I have a button that checks the checked checkboxes and run their designated functions I have a qui with onevent turnen on. THe problem is that when the first function of the first checkbox it exits the button function. (it stops after completing the fist true check) How do I solve this Example not complete script, but just to give a idea. ; BUtton on gui $btGO = _GUICtrlCreateButton7sEX1("Start", 500, 75, 50, 50) GUICtrlSetOnEvent(-1, "_start") ;Function that calls the button Func _start() If _GUICtrlCheckBoxGetState($checkherstelpunt1) = "true" Then _CreateRestorePoint() If _GUICtrlCheckBoxGetState($checkherstelpunt2) = "true" Then _CreateRestorePoint2() Endfunc Link to comment Share on other sites More sharing options...
kjpolker Posted September 15, 2021 Share Posted September 15, 2021 So you're saying that when the Function is called it checks the first argument and passes but does not get to the second argument? What does your function _CreateRestorePoint() look like? I think that's where it is hanging up. 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