How do you setup three Radio controls in such a way that if one is enabled, it will run a certain script from ONE button?
The Radio controls should only allow one or the other to be enabled.
O First - Alert!
O Second - Alert2
O Third - Alert3
Enter - Runs the script that is enabled
The three Alert scripts are included inside the Example.
How do you setup Radio controls?
How do you setup Radio controls?
- Attachments
-
- Example.RsObj
- (13.04 KiB) Downloaded 209 times
Re: How do you setup Radio controls?
this is one way, change radio button the press enter.
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: How do you setup Radio controls?
And another option
- Attachments
-
- Example.RsObj
- (16.06 KiB) Downloaded 198 times
Re: How do you setup Radio controls?
Awesome, thank you guys!
What I do not understand though is this line and the path used:
Activity.Run(owner + "/Alert" + choices)
There is no "/Alert" node.
Guessing it is using Safe Name?
Or the First, Second, and Third nodes in the encapsulation?
What I do not understand though is this line and the path used:
Activity.Run(owner + "/Alert" + choices)
There is no "/Alert" node.
Guessing it is using Safe Name?
Or the First, Second, and Third nodes in the encapsulation?
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: How do you setup Radio controls?
choices is 1,2 or 3
so "/Alert" + choices is /Alert1, /Alert2 or /Alert3
only works because the name of your scripts end with numbers
the commented code also works and doesn't depend on the 1,2,3 values
Re: How do you setup Radio controls?
In Clinton's version he added to the name 'Alert' using the choice, creating your file names. The choice being the radio button value.
If you look at mine it has Norm or someone code in it, it was part of the 'Matrix Info" script object in the library. I created a switch to read which value triggered which script. It wouldn't matter what the scripts are called then...
Clinton wrote back faster..
If you look at mine it has Norm or someone code in it, it was part of the 'Matrix Info" script object in the library. I created a switch to read which value triggered which script. It wouldn't matter what the scripts are called then...
Clinton wrote back faster..
Re: How do you setup Radio controls?
Thanks for the explanation!
I changed it round a little bit to just run scripts. New Axis Snap panel
I changed it round a little bit to just run scripts. New Axis Snap panel
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: How do you setup Radio controls?
Seems less efficient than just the buttons, now you select an option and press the button before was just press button.
Re: How do you setup Radio controls?
Morning wrecker!clintonman wrote: ↑08 Sep 2019, 18:42 Seems less efficient than just the buttons, now you select an option and press the button before was just press button.
But as always you are right.