Loading...
This chapter gives an overview of the members available for the Phidgets IR Code Table.
Please read the chapter "Phidgets - IR Code Table" if you would like to know how to add and use it. As explained in the topic"Object and Member Notation (dot syntax)", all kinds of objects can be addressed in the scripting language by using their members which set (or return if applicable) properties or methods of that object. Please refer to the chapter "Script Language" for more details about scripting in general.
Project.Phidgets_IRCodeTable(deviceName or ID) |
Example: Alternative Example: |
This gives access to all further members of the device "Phidgets_IRCodeTable" from the Configuration dialog. Using the Project object is an alternative to addressing the device directly by entering its name. The Project object allows to address the device through its name or ID. Substituting the ID with a dynamic variable allows automation. Actions can be performed on many devices of the same type simultaneously, e.g. by using for-loops: |
Phidgets_IRCodeTableName.Disable |
Example: Alternative Example: |
This disables the according Phidgets IR Code Table in the Configuration dialog as if the "Enable" check box in the window was unchecked. Use the .Enable member to reverse this command. |
Phidgets_IRCodeTableName.DisableReceive(alias) |
Example: Alternative Example: |
This refers to the code named "Play" in the according Phidgets IR Code Table and disables the execution from the commands that were entered in the scripting field in the Configuration dialog. Accordingly, the "Receive" option is unchecked. Use the .EnableReceive member to reverse this command. |
Phidgets_IRCodeTableName.DisableSend(alias) |
Example: Alternative Example: |
This refers to the code named "Play" in the according Phidgets IR Code Table and disables the option to send this code out. Accordingly, the "Send" option in the Configuration dialog is unchecked. Use the .EnableSend member to reverse this command. |
Phidgets_IRCodeTableName.Enable |
Example: Alternative Example: |
This enables the according Phidgets IR Code Table in the Configuration dialog as if the "Enable" check box in the window was checked. Use the .Disable member to reverse this command. |
Phidgets_IRCodeTableName.EnableReceive(alias) |
Example: Alternative Example: |
This refers to the code named "Play" in the according Phidgets IR Code Table and enables the execution from the commands that were entered in the scripting field in the Configuration dialog. Accordingly, the "Receive" option is checked. Use the .DisableReceive member to reverse this command. |
Phidgets_IRCodeTableName.EnableSend(alias) |
Example: Alternative Example: |
This refers to the code named "Play" in the according Phidgets IR Code Table and enables the option to send this code out. Accordingly, the "Send" option in the Configuration dialog is checked. Use the .DisableSend member to reverse this command. |
Phidgets_IRCodeTableName.GetAliasNames |
Example: Alternative Example: |
This member returns the alias names of all learned codes from the according Phidgets IR Code Table as a list. The result could look as follows: ["Play", "Pause", "Stop", "Home"] You could also write it into a Widget, e.g. a DropDown List via the script and the variable "vlist" that was assigned above: DropDownList1.SetItemsFromArray("vlist") |
Phidgets_IRCodeTableName.IRCode(alias) |
Example: Alternative Example: |
This returns the IR code word associated with the learned code named "Play" from the according Phidgets IR Code Table. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_IRCodeTable1.IRCode("Play") |
Phidgets_IRCodeTableName.IsEnabled |
Example: Alternative Example: |
This member returns the status of the check box "Enable" of the configuration dialog when selecting the according IR Code Table. The result, a Boolean value (or string), is "True" if the device is enabled and "False" if it is currently not enabled. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_IRCodeTable1.IsEnabled |
Phidgets_IRCodeTableName.isReceiveEnabled(alias) |
Example: Alternative Example: |
This refers to the code named "Play" in the according Phidgets IR Code Table and returns the status of the check box "Receive". The result, a Boolean value (or string), is "True" if the option is enabled and "False" if it is currently not enabled which means that the commands that were entered in the scripting field in the Configuration dialog would not be executed. The first example shows how to use it with a Boolean variable named "vbool". You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_IRCodeTable1.isReceiveEnabled("Play") |
Phidgets_IRCodeTableName.isSendEnabled(alias) |
Example: Alternative Example: |
This refers to the code named "Play" in the according Phidgets IR Code Table and returns the status of the check box "Send". The result, a Boolean value (or string), is "True" if the option is enabled and "False" if it is currently not enabled which means that the code cannot be sent out. The first example shows how to use it with a Boolean variable named "vbool". You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_IRCodeTable1.isSendEnabled("Play") |
Phidgets_IRCodeTableName.Send(alias,device,repeatCount) |
Example: Alternative Example: |
This refers to the learned code named "Play" which is stored in the according Phidgets IR Code Table. The device named "Phidgets_PhidgetIR1" sends the code 10 times out via its IR diodes Alternatively, you can also send a code via the command: Phidgets_PhidgetIR1.Send |