Code: Select all
num = 0
StartGui:
Gui, Add, Checkbox, gGuiUpdate vCB1, Check me
Gui, Add, Edit, Number -Wrap Limit1 vEditRand
Gui, Add, UpDown, vRandUpDown Range0-6, 0
Gui, Show
Return
GuiUpdate:
Read := array(0)
GuiControlGet, retrievedVal,, IV1
Read[1] := retrievedVal
Update(Read)
Return
Update(result){
for i, element in result{
if element=1
num++
}
cap := 6-num
GuiControl, UpDown, RandUpDown, Range0-%cap% ;I want to do this!
}
Is there any way to do this? I've been looking around for a few hours to no avail.