Difference between revisions of "IR"

From HSYCO
Jump to navigation Jump to search
Line 1: Line 1:
 
{{UI Object Header}}
 
{{UI Object Header}}
 
A button used to send infrared (IR) commands through the IRTrans IR emitter/receiver network devices.
 
A button used to send infrared (IR) commands through the IRTrans IR emitter/receiver network devices.
It has several colors (depending on the skin) and three different sizes:
+
It has three button versions with several colors (depending on the skin) and an image version with a custom image:
 
* '''ir''' (standard size)
 
* '''ir''' (standard size)
 
* '''irmini''' (medium size)
 
* '''irmini''' (medium size)
 
* '''irmicro''' (small size)
 
* '''irmicro''' (small size)
 +
* '''irimage''' (custom image)
  
 
[[File:UI Object link.png]]
 
[[File:UI Object link.png]]
Line 15: Line 16:
 
sends the “on” command of the “denon-1036” remote control, then waits 4 seconds, and finally sends the “tv” command of the “denon-1036”
 
sends the “on” command of the “denon-1036” remote control, then waits 4 seconds, and finally sends the “tv” command of the “denon-1036”
 
*'''position''': the object's position. Use the pixels or rows and columns coordinates format
 
*'''position''': the object's position. Use the pixels or rows and columns coordinates format
 +
*'''label''': the text label on the button. It can contain HTML tags
 +
 +
For the button versions:
 
*'''color''':  the color of the button. It can assume any of the skin's color values (E.g. for the "blue" skin, the possible values are: b - blue; g - green; gr - gray; r - red; y - yellow; glass)
 
*'''color''':  the color of the button. It can assume any of the skin's color values (E.g. for the "blue" skin, the possible values are: b - blue; g - green; gr - gray; r - red; y - yellow; glass)
*'''label''': the text label on the button. It can contain HTML tags
+
 
 +
For the image version:
 +
*'''image filename''': the image filename
  
 
== Syntax ==
 
== Syntax ==
Line 25: Line 31:
 
  (irmicro <irid>; <com>; <pos>; <color>; <label>)
 
  (irmicro <irid>; <com>; <pos>; <color>; <label>)
 
   
 
   
  (irimage <file>; <pos>; <width>; <height>; <irid>; <com>; <label>; <css>)
+
  (irimage <image filename>; <pos>; <width>; <height>; <irid>; <com>; <label>; <css>)
  
 
E.g.
 
E.g.

Revision as of 12:40, 22 January 2014

Note  For a description and a complete list of UI Objects, see UI Objects.

A button used to send infrared (IR) commands through the IRTrans IR emitter/receiver network devices. It has three button versions with several colors (depending on the skin) and an image version with a custom image:

  • ir (standard size)
  • irmini (medium size)
  • irmicro (small size)
  • irimage (custom image)

UI Object link.png

Parameters

  • irid: IRTrans id, as defined in the list of the IRTrans parameter in

hsyco.ini

  • com: the sequence of IR commands to send. Every command is composed by a name that identifies the commands database, followed by a comma and the name of the command in that database. Different commands in sequence can be separated by blank spaces. It is possible to insert the special @N command, which introduces a wait time of N milliseconds before sending the next command. For example:
denon-1036,on @4000 denon-1036,tv

sends the “on” command of the “denon-1036” remote control, then waits 4 seconds, and finally sends the “tv” command of the “denon-1036”

  • position: the object's position. Use the pixels or rows and columns coordinates format
  • label: the text label on the button. It can contain HTML tags

For the button versions:

  • color: the color of the button. It can assume any of the skin's color values (E.g. for the "blue" skin, the possible values are: b - blue; g - green; gr - gray; r - red; y - yellow; glass)

For the image version:

  • image filename: the image filename

Syntax

(ir <irid>; <com>; <pos>; <color>; <label>)

(irmini <irid>; <com>; <pos>; <color>; <label>)

(irmicro <irid>; <com>; <pos>; <color>; <label>)

(irimage <image filename>; <pos>; <width>; <height>; <irid>; <com>; <label>; <css>)

E.g.