Hemendra Posted September 15, 2016 Share Posted September 15, 2016 Using BUTTON from tool box, we are able to toggle value between 0 and 1, its toggle button. I need Momentary push button, means it writes 1 value to channel up to kept it pressed. as soon as released it, channel valued should turn to zero. Also wanna to show different text for value 0 and 1. How can I make this? Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted September 15, 2016 Share Posted September 15, 2016 Use two actions on the same button. Both should be quick sequence actions. The first one would have the "On Mouse Down" checkbox that appears when you select Quick Sequence checked. That one would have script like: myChannel = 1 strCaption = "ON!" Then the second action would not have On Mouse Down checked and would have: myChannel = 0 strCaption = "Off" Note if you want the button text to change if the channel changes outside of the button press, you either need to add it to script, or you can use a blank button, and then overlay a Descriptive Text Component on top of it. Quote Link to comment Share on other sites More sharing options...
Hemendra Posted September 16, 2016 Author Share Posted September 16, 2016 Tested ok. Thank you Quote Link to comment Share on other sites More sharing options...
JohnDemsey Posted October 14, 2019 Share Posted October 14, 2019 Using simply myChannel =1 as a Quick Sequence #1 and myChannel =0 as Quick sequence #2 I was not implement this in version 18.1 must be missing something. Any help appreciated. Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted October 15, 2019 Share Posted October 15, 2019 Can you post a sample of what you have so I can see what might be wrong? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.