Please wait. Due to its content this page might take a while to load...
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 like to know how to add and use it. The chapter Object and Member Notation in Widget Designer explains how to use members in general.
Phidgets_IRCodeTableID.Disable 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_IRCodeTableID.DisableReceive(alias) 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_IRCodeTableID.DisableSend(alias) 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_IRCodeTableID.Enable 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_IRCodeTableID.EnableReceive(alias) 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_IRCodeTableID.EnableSend(alias) 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_IRCodeTableID.GetAliasNames 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 a local variable "list": DropDownList1.SetItemsFromArray(Phidgets_IRCodeTable1.GetAliasNames) |
Phidgets_IRCodeTableID.IRCode(alias) 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_IRCodeTableID.IsEnabled 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_IRCodeTableID.isReceiveEnabled(alias) 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 an existing (global) 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_IRCodeTableID.isSendEnabled(alias) 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 an existing (global) 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_IRCodeTableID.Send(alias,device,repeatCount) 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 |