CommandFusion Wiki

Documentation Resources

User Tools

Site Tools


software:gui-designer:system-manager:commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

software:gui-designer:system-manager:commands [2012/08/21 02:37]
aaron Links to software:gui-designer:http-request-commands changed to software:gui-designer:system-manager:http-request-commands
software:gui-designer:system-manager:commands [2019/02/04 22:27] (current)
jarrod
Line 13: Line 13:
   - Click the 'Add Command'​ button in the System Manager toolbar {{:​software:​gui-designer:​system-manager:​icon_addcommand.gif?​nolink|}}   - Click the 'Add Command'​ button in the System Manager toolbar {{:​software:​gui-designer:​system-manager:​icon_addcommand.gif?​nolink|}}
   - Check the correct system is selected in the drop list   - Check the correct system is selected in the drop list
-  - Give the command a name. In the below example the command is for the 1 digit on a remote, so we called it "Num1+  - Give the command a name. In the below example the command is for toggling statusbar, so we called it "Statusbar Toggle
-  - Enter the command value. In the below example the command is designed for a GlobalCache unit to send and IR event.+  - Enter the command value. In the below example the command is designed for show/hide the statusbar.
   - Press OK and you will see the command added to the System Manager tree, under the chosen system.   - Press OK and you will see the command added to the System Manager tree, under the chosen system.
  
-{{:​software:​gui-designer:​system-manager:​command_properties.png?​nolink|}}+{{:​software:​gui-designer:​system-manager:​commandproperties.png?nolink&400|}}
  
-==== Optional ​Target ​Value Assignment ====+==== Optional ​Join Value Assignment ====
 When a command is sent, you can also optionally assign the value of a target join.\\ When a command is sent, you can also optionally assign the value of a target join.\\
 To do this, firstly select the checkbox to enable the other properties. Then select the join type from the dropdown list.\\ To do this, firstly select the checkbox to enable the other properties. Then select the join type from the dropdown list.\\
 Now enter the join number you want to target and finally enter the value you want to assign to the join.\\ Now enter the join number you want to target and finally enter the value you want to assign to the join.\\
-This is handy for many reasons, such as changing an image path, changing a text value or changing a button state.+This is handy for many reasons, such as changing an image path, changing a text value or changing a button state.\\ 
 +The value can contain [[software:​gui-designer:​tokens|token replacements]] and [[software:​gui-designer:​math-expressions|math expressions]]. 
 + 
 +==== Optionally Stop Macro when Command Fires ==== 
 +This will stop all running macros when the command is fired when the checkbox for this option is selected.\\
  
 ==== Assigning Commands ==== ==== Assigning Commands ====
-Commands can be assigned to buttons ​and sliders. Here we will show how to assign the commands to both these objects.\\+Commands can be assigned to buttonssliders, macro, input field, page timers and gestures  ​. Here we will show how to assign the commands to these objects.\\
 You will of course first need to create a command following the steps above. You will of course first need to create a command following the steps above.
  
Line 50: Line 54:
  
 To assign the various commands, double click on a slider to open the Slider Properties dialog and select the commands for the press, drag and/or release actions.\\ To assign the various commands, double click on a slider to open the Slider Properties dialog and select the commands for the press, drag and/or release actions.\\
 +
 +=== Assigning Commands to Macros ===
 +Go to [[software:​gui-designer:​system-manager:​macros|Macros]] for more details.
 +
 +=== Assigning Commands to Input Field ===
 +
 +  - Use the Input Tool to create an input field.
 +  - Double-click the input field that has been created to go into Input Field Properties.
 +  - Assign Commands to either the "Send Value Actions"​ or "On Change Actions"​ part. 
 +
 +Commands for "Send Value Actions"​ will only be run when the full input string is entered and when the "​Done"​ button on the onscreen keyboard (OSK) is pressed. Commands for "On Change Actions"​ will be run for every individual input key that is typed or changed on the OSK.
 +
 +{{:​software:​gui-designer:​system-manager:​input_command.png?​nolink&​700|}}
 +
 +=== Assigning Commands to Page Timers ===
 +Go to [[software:​gui-designer:​timers|Timers]] for more details.
 +
 +=== Assigning Commands to Gestures ===
 +Go to [[software:​gui-designer:​gesture-manager|Gesture Manager]] for more details.
 +
 +==== Executing Javascript through Commands ====
 +To execute Javascript functions, enter the script at the "​Javascript"​ section under the Command Properties. If you want the JS script to receive and use the values from the Command Values section, make sure the box "​Javascript sends command value?"​ is checked.
 +Below is an example of controlling the volume of the XBMC server using JS. The "​XBMCMacMini.XBMC.setVolume(data)"​ function is the command that sets the volume where the ''​sliderval''​ string passes the value of the volume to be set via a slider.
 +
 +{{:​software:​gui-designer:​system-manager:​command_js.png?​nolink&​400|}} ​
 +
 +==== Sending Hex Values through Commands ====
 +To send hex strings or values, append a prefix of "​\x"​ to the hex codes and insert at the Command Value section.
 +
 +{{:​software:​gui-designer:​system-manager:​hexstring.png?​nolink&​400|}}
  
 ==== HTTP Requests as Commands ==== ==== HTTP Requests as Commands ====
Line 55: Line 89:
 To control these devices via iViewer, the command value to send needs to be crafted to follow the HTTP Request standard formatting.\\ To control these devices via iViewer, the command value to send needs to be crafted to follow the HTTP Request standard formatting.\\
 See the [[http-request-commands|HTTP Request Commands]] page for more details. See the [[http-request-commands|HTTP Request Commands]] page for more details.
 +
 +
  
software/gui-designer/system-manager/commands.1345516666.txt.gz · Last modified: 2012/08/21 02:37 by aaron