Andrew --
Welcome to the world of OPUS! We're glad you joined us.
To make a Button Object perform different Actions each time you Left Click requires the use of a Programming "If" statement and a Variable.
After you create your Button Object, the Actions Window automatically opens with a "Left Mouse Click" default Trigger already in place. You need to go to the Programming tab and double click "If". You then need to create a New Variable. OPUS has many System Variables. You don't want to use them (for this project). Press the "New" button and name it "Mute$." Variables can be Numbers or Text. I learned to use "$" in the name if a Variable was Text. Let's assign it an initial value of "Off" (Case senstive). Click "Ok." Go to the "Compare with" input field and type "Off" and click "Apply."
Now add an Action of "Change Volume." Make the value of the volume zero so the audio is off. You'll have to select which audio source you are adjusting.
Click the Programming Tab again and select Variables, then click "Set Variable. From the drop-down list, select your "Mute$" variable, and in the "Text" field type "On" (without the " " marks). Click "Apply."
You're half way done. Click the Programming Tab again, and select Programming, then click "Else." You could re-do the Change Volume and Variable set steps again. Let's take a shortcut and highlight "Change Volume" and "Mute$=On" then right mouse click and Copy. Click on "Else" and do a Paste.
Click on "Change Volume" and increase the volume to 100%. Click on "Mute$=On" and change the Text value to "Off." Click Apply or OK and you should be done.
Take a look at what you've done. If you click the Button and the Mute is Off, then OPUS will lower the volume to nothing, then change the Mute to On. If Mute is On, the OPUS changes the volume to full on, and changes the Mute variable to Off.
Let us know how you do with this. It's actually more complicated to explain than it is to do.
_________________ Fred Harms, Extraordinary Demos Naperville, Illinois (USA) 630/904-3636 demofred@aol.com
|