Jump to content

equal labels and input


Lociz
 Share

Recommended Posts

i have a 6 label, 1 input.

Ex: i write 50 number to input

1st label: 12

2...........: 17

3...........: 7

4...........: 4

5............: 9

6............: 1

Automatically write labels to Random numbers but not numbers nears with other numbers

and equal with input. And max NUMBER is 20.

Please help me?

Link to comment
Share on other sites

i have code but its very slow

Do

$Equal = 0

For $sCurr = 0 to 5

$gState[$sCurr] = Random(1, GUICtrlRead($gOlcut[$sCurr]), 1)

GUICtrlSetData($aCheckBox[$sNow][$sCurr], $gState[$sCurr])

$Equal = $Equal + $gState[$sCurr]

Next

Until $Current = $Equal

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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