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 [2013/06/18 04:19]
terrylau [Creating Commands]
software:gui-designer:system-manager:commands [2019/02/04 22:27] (current)
jarrod
Line 19: Line 19:
 {{:​software:​gui-designer:​system-manager:​commandproperties.png?​nolink&​400|}} {{:​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 56: Line 90:
 See the [[http-request-commands|HTTP Request Commands]] page for more details. See the [[http-request-commands|HTTP Request Commands]] page for more details.
  
-==== Sending Hex Values through Commands ==== 
-To send hex strings or values, just 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|}} 
  
  
software/gui-designer/system-manager/commands.1371529193.txt.gz · Last modified: 2013/06/18 04:19 by terrylau