Jump to content

Recommended Posts

Posted

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

 

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...