Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MBS FileMaker Plugin Example Databases

Phidget IR Receiver

All examples are included with download of MBS FileMaker Plugin.

Phidget IR Receiver.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts9
Value Lists0
Custom Functions0
Custom Menus24
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Phidget IR Receiver
18 fields defined, 1 record
Phidget IR Receiver

Fields

Table Name: Phidget IR Receiver - 18 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
PrimaryKeyNormal, TextAuto-Enter: Validation:
  • Only during data entry
  • Not empty
  • Unique
  • Strict validation
Storage:
  • Repetitions: 1
  • Indexing: Minimal
  • Automatically create indexes as needed
  • Index Language: Unicode Raw
Unique identifier of each record in this table
          CreationTimestampNormal, TimestampAuto-Enter:
          • Creation timestamp
          Validation:
          • Only during data entry
          • Strict data type: 4 digit year
          • Not empty
          • Strict validation
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
          Date and time each record was created
                  CreatedByNormal, TextAuto-Enter:
                  • Creation account name
                  Validation:
                  • Only during data entry
                  • Not empty
                  • Strict validation
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                  Account name of the user who created each record
                          ModificationTimestampNormal, TimestampAuto-Enter:
                          • Modification timestamp
                          Validation:
                          • Only during data entry
                          • Strict data type: 4 digit year
                          • Not empty
                          • Strict validation
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                          Date and time each record was last modified
                                  ModifiedByNormal, TextAuto-Enter:
                                  • Modification account name
                                  Validation:
                                  • Only during data entry
                                  • Not empty
                                  • Strict validation
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: German
                                  Account name of the user who last modified each record
                                          DeviceNameNormal, TextAuto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                          • Indexing: None
                                          • Automatically create indexes as needed
                                          • Index Language: German
                                              DeviceSerialNumberNormal, NumberAuto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Repetitions: 1
                                              • Indexing: None
                                              • Automatically create indexes as needed
                                              • Index Language: German
                                                  DeviceIDNormal, NumberAuto-Enter:
                                                  • Allow editing
                                                  Validation:
                                                  • Only during data entry
                                                  Storage:
                                                  • Repetitions: 1
                                                  • Indexing: None
                                                  • Automatically create indexes as needed
                                                  • Index Language: German
                                                      DeviceLabelNormal, TextAuto-Enter:
                                                      • Allow editing
                                                      Validation:
                                                      • Only during data entry
                                                      Storage:
                                                      • Repetitions: 1
                                                      • Indexing: None
                                                      • Automatically create indexes as needed
                                                      • Index Language: German
                                                          ChannelNormal, NumberAuto-Enter:
                                                          • Allow editing
                                                          Validation:
                                                          • Only during data entry
                                                          Storage:
                                                          • Repetitions: 1
                                                          • Indexing: None
                                                          • Automatically create indexes as needed
                                                          • Index Language: German
                                                              ChannelClassNormal, NumberAuto-Enter:
                                                              • Allow editing
                                                              Validation:
                                                              • Only during data entry
                                                              Storage:
                                                              • Repetitions: 1
                                                              • Indexing: None
                                                              • Automatically create indexes as needed
                                                              • Index Language: German
                                                                  ChannelClassNameNormal, TextAuto-Enter:
                                                                  • Allow editing
                                                                  Validation:
                                                                  • Only during data entry
                                                                  Storage:
                                                                  • Repetitions: 1
                                                                  • Indexing: None
                                                                  • Automatically create indexes as needed
                                                                  • Index Language: German
                                                                      ChannelSubclassNormal, TextAuto-Enter:
                                                                      • Allow editing
                                                                      Validation:
                                                                      • Only during data entry
                                                                      Storage:
                                                                      • Repetitions: 1
                                                                      • Indexing: None
                                                                      • Automatically create indexes as needed
                                                                      • Index Language: German
                                                                          BitCountNormal, NumberAuto-Enter:
                                                                          • Allow editing
                                                                          Validation:
                                                                          • Only during data entry
                                                                          Storage:
                                                                          • Repetitions: 1
                                                                          • Indexing: None
                                                                          • Automatically create indexes as needed
                                                                          • Index Language: German
                                                                              IsRepeatNormal, NumberAuto-Enter:
                                                                              • Allow editing
                                                                              Validation:
                                                                              • Only during data entry
                                                                              Storage:
                                                                              • Repetitions: 1
                                                                              • Indexing: None
                                                                              • Automatically create indexes as needed
                                                                              • Index Language: German
                                                                                  LastEventNormal, TextAuto-Enter:
                                                                                  • Allow editing
                                                                                  Validation:
                                                                                  • Only during data entry
                                                                                  Storage:
                                                                                  • Repetitions: 1
                                                                                  • Indexing: None
                                                                                  • Automatically create indexes as needed
                                                                                  • Index Language: German
                                                                                      JSONNormal, TextAuto-Enter:
                                                                                      • Allow editing
                                                                                      Validation:
                                                                                      • Only during data entry
                                                                                      Storage:
                                                                                      • Repetitions: 1
                                                                                      • Indexing: None
                                                                                      • Automatically create indexes as needed
                                                                                      • Index Language: German
                                                                                          CodeNormal, TextAuto-Enter:
                                                                                          • Allow editing
                                                                                          Validation:
                                                                                          • Only during data entry
                                                                                          Storage:
                                                                                          • Repetitions: 1
                                                                                          • Indexing: None
                                                                                          • Automatically create indexes as needed
                                                                                          • Index Language: German

                                                                                              Layout Objects: Phidget IR Receiver

                                                                                              Regular Fields

                                                                                              Field Name: Phidget IR Receiver::DeviceName
                                                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                              • Top: 117 pt
                                                                                              • Left: 210 pt
                                                                                              • Bottom: 148 pt
                                                                                              • Right: 463 pt
                                                                                              • Anchoring: Left, Top
                                                                                              Field Format:
                                                                                              • Edit Box
                                                                                              Field Behavior:
                                                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                                                              • Touch keyboard type: Default for Data Type
                                                                                              • Go to next field using: Tab key
                                                                                              Yes

                                                                                              Field Name: Phidget IR Receiver::DeviceSerialNumber
                                                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                              • Top: 152 pt
                                                                                              • Left: 210 pt
                                                                                              • Bottom: 183 pt
                                                                                              • Right: 463 pt
                                                                                              • Anchoring: Left, Top
                                                                                              Field Format:
                                                                                              • Edit Box
                                                                                              Field Behavior:
                                                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                                                              • Touch keyboard type: Default for Data Type
                                                                                              • Go to next field using: Tab key
                                                                                              Yes

                                                                                              Field Name: Phidget IR Receiver::DeviceID
                                                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                              • Top: 187 pt
                                                                                              • Left: 210 pt
                                                                                              • Bottom: 218 pt
                                                                                              • Right: 463 pt
                                                                                              • Anchoring: Left, Top
                                                                                              Field Format:
                                                                                              • Edit Box
                                                                                              Field Behavior:
                                                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                                                              • Touch keyboard type: Default for Data Type
                                                                                              • Go to next field using: Tab key
                                                                                              Yes

                                                                                              Field Name: Phidget IR Receiver::DeviceLabel
                                                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                              • Top: 222 pt
                                                                                              • Left: 210 pt
                                                                                              • Bottom: 253 pt
                                                                                              • Right: 463 pt
                                                                                              • Anchoring: Left, Top
                                                                                              Field Format:
                                                                                              • Edit Box
                                                                                              Field Behavior:
                                                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                                                              • Touch keyboard type: Default for Data Type
                                                                                              • Go to next field using: Tab key
                                                                                              Yes

                                                                                              Field Name: Phidget IR Receiver::Channel
                                                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                              • Top: 257 pt
                                                                                              • Left: 210 pt
                                                                                              • Bottom: 288 pt
                                                                                              • Right: 463 pt
                                                                                              • Anchoring: Left, Top
                                                                                              Field Format:
                                                                                              • Edit Box
                                                                                              Field Behavior:
                                                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                                                              • Touch keyboard type: Default for Data Type
                                                                                              • Go to next field using: Tab key
                                                                                              Yes

                                                                                              Field Name: Phidget IR Receiver::ChannelClass
                                                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                              • Top: 292 pt
                                                                                              • Left: 210 pt
                                                                                              • Bottom: 323 pt
                                                                                              • Right: 463 pt
                                                                                              • Anchoring: Left, Top
                                                                                              Field Format:
                                                                                              • Edit Box
                                                                                              Field Behavior:
                                                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                                                              • Touch keyboard type: Default for Data Type
                                                                                              • Go to next field using: Tab key
                                                                                              Yes

                                                                                              Field Name: Phidget IR Receiver::ChannelClassName
                                                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                              • Top: 327 pt
                                                                                              • Left: 210 pt
                                                                                              • Bottom: 358 pt
                                                                                              • Right: 463 pt
                                                                                              • Anchoring: Left, Top
                                                                                              Field Format:
                                                                                              • Edit Box
                                                                                              Field Behavior:
                                                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                                                              • Touch keyboard type: Default for Data Type
                                                                                              • Go to next field using: Tab key
                                                                                              Yes

                                                                                              Field Name: Phidget IR Receiver::ChannelSubclass
                                                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                              • Top: 362 pt
                                                                                              • Left: 210 pt
                                                                                              • Bottom: 393 pt
                                                                                              • Right: 463 pt
                                                                                              • Anchoring: Left, Top
                                                                                              Field Format:
                                                                                              • Edit Box
                                                                                              Field Behavior:
                                                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                                                              • Touch keyboard type: Default for Data Type
                                                                                              • Go to next field using: Tab key
                                                                                              Yes

                                                                                              Field Name: Phidget IR Receiver::BitCount
                                                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                              • Top: 407 pt
                                                                                              • Left: 384 pt
                                                                                              • Bottom: 438 pt
                                                                                              • Right: 463 pt
                                                                                              • Anchoring: Left, Top
                                                                                              Field Format:
                                                                                              • Edit Box
                                                                                              Field Behavior:
                                                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                                                              • Touch keyboard type: Default for Data Type
                                                                                              • Go to next field using: Tab key
                                                                                              Yes

                                                                                              Field Name: Phidget IR Receiver::IsRepeat
                                                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                              • Top: 406 pt
                                                                                              • Left: 210 pt
                                                                                              • Bottom: 437 pt
                                                                                              • Right: 289 pt
                                                                                              • Anchoring: Left, Top
                                                                                              Field Format:
                                                                                              • Edit Box
                                                                                              Field Behavior:
                                                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                                                              • Touch keyboard type: Default for Data Type
                                                                                              • Go to next field using: Tab key
                                                                                              Yes

                                                                                              Field Name: Phidget IR Receiver::LastEvent
                                                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                              • Top: 652 pt
                                                                                              • Left: 210 pt
                                                                                              • Bottom: 683 pt
                                                                                              • Right: 990 pt
                                                                                              • Anchoring: Left, Top
                                                                                              Field Format:
                                                                                              • Edit Box
                                                                                              Field Behavior:
                                                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                                                              • Touch keyboard type: Default for Data Type
                                                                                              • Go to next field using: Tab key
                                                                                              Yes

                                                                                              Field Name: Phidget IR Receiver::JSON
                                                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                                OnObjectModify
                                                                                              • Script: <unknown>
                                                                                              • Modes: Browse
                                                                                              • Top: 462 pt
                                                                                              • Left: 210 pt
                                                                                              • Bottom: 632 pt
                                                                                              • Right: 463 pt
                                                                                              • Anchoring: Left, Top
                                                                                              Field Format:
                                                                                              • Edit Box
                                                                                              Field Behavior:
                                                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                                                              • Touch keyboard type: Default for Data Type
                                                                                              • Go to next field using: Tab key
                                                                                              Yes

                                                                                              Field Name: Phidget IR Receiver::Code
                                                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                              • Top: 407 pt
                                                                                              • Left: 297 pt
                                                                                              • Bottom: 438 pt
                                                                                              • Right: 376 pt
                                                                                              • Anchoring: Left, Top
                                                                                              Field Format:
                                                                                              • Edit Box
                                                                                              Field Behavior:
                                                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                                                              • Touch keyboard type: Default for Data Type
                                                                                              • Go to next field using: Tab key
                                                                                              Yes

                                                                                              Buttons

                                                                                              Button PropertiesCoordinatesScript/Script Step
                                                                                                Type:
                                                                                              • Text: Load Library
                                                                                              • Top: 117 pt
                                                                                              • Left: 498 pt
                                                                                              • Bottom: 148 pt
                                                                                              • Right: 751 pt
                                                                                              • Anchoring: Left, Top
                                                                                              Perform Script [ “Load Library” ]

                                                                                              Scripts:


                                                                                              Button PropertiesCoordinatesScript/Script Step
                                                                                                Type:
                                                                                              • Text: Open IR Receiver
                                                                                              • Top: 156 pt
                                                                                              • Left: 498 pt
                                                                                              • Bottom: 202 pt
                                                                                              • Right: 751 pt
                                                                                              • Anchoring: Left, Top
                                                                                              Perform Script [ “Open Phidget IR Receiver” ]

                                                                                              Scripts:


                                                                                              Button PropertiesCoordinatesScript/Script Step
                                                                                                Type:
                                                                                              • Text: Close IR Receiver
                                                                                              • Top: 195 pt
                                                                                              • Left: 498 pt
                                                                                              • Bottom: 241 pt
                                                                                              • Right: 751 pt
                                                                                              • Anchoring: Left, Top
                                                                                              Perform Script [ “Close” ]

                                                                                              Scripts:


                                                                                              Script Hierarchy

                                                                                              Load Library
                                                                                              Open Phidget IR Receiver
                                                                                              Close
                                                                                              Close All
                                                                                              Clear Fields
                                                                                              -
                                                                                              Attached
                                                                                              CodeReceived
                                                                                              Detached

                                                                                              Next Script: [Open Phidget IR Receiver]
                                                                                              Script NameLoad Library
                                                                                              Run script with full access privilegesOff
                                                                                              Siri Shortcut VisibleOff
                                                                                              Include In MenuYes
                                                                                              Layouts that use this script
                                                                                              Scripts that use this script
                                                                                              Script Definition
                                                                                              Script Steps
                                                                                              • If [ MBS("IsWindows") ]
                                                                                              • Set Variable [ $r; Value:MBS( "Phidget.Load"; "C:\Program Files\Phidgets\Phidget22\phidget22.dll") ]
                                                                                              • Else If [ MBS("IsMacOS") ]
                                                                                              • Set Variable [ $r; Value:MBS( "Phidget.Load"; "/Library/Frameworks/Phidget22.framework") ]
                                                                                              • Else If [ MBS("IsLinux") ]
                                                                                              • Set Variable [ $r; Value:MBS( "Phidget.Load"; "libphidget22.so") ]
                                                                                              • End If
                                                                                              • If [ $r ≠ "OK" ]
                                                                                              • Show Custom Dialog [ Title: "Failed to load library"; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                                                                                              • Halt Script
                                                                                              • End If
                                                                                              Fields used in this script
                                                                                                Scripts used in this script
                                                                                                  Layouts used in this script
                                                                                                    Tables used in this script
                                                                                                      Table occurrences used by this script
                                                                                                        Custom Functions used by this script
                                                                                                          Custom menu set used by this script

                                                                                                            Previous Script: [Load Library]Next Script: [Close]
                                                                                                            Script NameOpen Phidget IR Receiver
                                                                                                            Run script with full access privilegesOff
                                                                                                            Siri Shortcut VisibleOff
                                                                                                            Include In MenuYes
                                                                                                            Layouts that use this script
                                                                                                            Scripts that use this script
                                                                                                              Script Definition
                                                                                                              Script Steps
                                                                                                              • If [ MBS("Phidget.Loaded") = 0 ]
                                                                                                              • Perform Script [ “Load Library” ]
                                                                                                              • End If
                                                                                                              • #we may want to look for network devices
                                                                                                              • Set Variable [ $$phidget; Value:MBS( "Phidget.EnableServerDiscovery"; "DeviceRemote" ) ]
                                                                                                              • Set Field [ Phidget IR Receiver::LastEvent; "Create at " & Get(CurrentTimestamp) ]
                                                                                                              • Set Variable [ $$phidget; Value:MBS( "Phidget.Create"; "IR" ) ]
                                                                                                              • Set Variable [ $r; Value:MBS( "Phidget.SetScriptTrigger"; $$phidget; "Attach"; Get(FileName); "Attached" ) ]
                                                                                                              • Set Variable [ $r; Value:MBS( "Phidget.SetScriptTrigger"; $$phidget; "Detach"; Get(FileName); "Detached" ) ]
                                                                                                              • #open asynchronously
                                                                                                              • Set Variable [ $r; Value:MBS( "Phidget.Open"; $$phidget ) ]
                                                                                                              • If [ $r ≠ "OK" ]
                                                                                                              • Set Field [ Phidget IR Receiver::LastEvent; "Failed to open at " & Get(CurrentTimestamp) ]
                                                                                                              • Commit Records/Requests [ No dialog ]
                                                                                                              • Show Custom Dialog [ Title: "Failed to open device."; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                                                                                                              • Else
                                                                                                              • Set Field [ Phidget IR Receiver::LastEvent; "Opened at " & Get(CurrentTimestamp) ]
                                                                                                              • Commit Records/Requests [ No dialog ]
                                                                                                              • End If
                                                                                                              Fields used in this script
                                                                                                              Scripts used in this script
                                                                                                              Layouts used in this script
                                                                                                                Tables used in this script
                                                                                                                Table occurrences used by this script
                                                                                                                Custom Functions used by this script
                                                                                                                  Custom menu set used by this script

                                                                                                                    Previous Script: [Open Phidget IR Receiver]Next Script: [Close All]
                                                                                                                    Script NameClose
                                                                                                                    Run script with full access privilegesOff
                                                                                                                    Siri Shortcut VisibleOff
                                                                                                                    Include In MenuYes
                                                                                                                    Layouts that use this script
                                                                                                                    Scripts that use this script
                                                                                                                      Script Definition
                                                                                                                      Script Steps
                                                                                                                      • If [ Length ( $$phidget ) > 0 ]
                                                                                                                      • Set Variable [ $r; Value:MBS("Phidget.Close"; $$phidget) ]
                                                                                                                      • Set Variable [ $r; Value:MBS("Phidget.Release"; $$phidget) ]
                                                                                                                      • Set Variable [ $$phidget; Value:"" ]
                                                                                                                      • End If
                                                                                                                      • Perform Script [ “Clear Fields” ]
                                                                                                                      • Set Field [ Phidget IR Receiver::LastEvent; "" ]
                                                                                                                      Fields used in this script
                                                                                                                      Scripts used in this script
                                                                                                                      Layouts used in this script
                                                                                                                        Tables used in this script
                                                                                                                        Table occurrences used by this script
                                                                                                                        Custom Functions used by this script
                                                                                                                          Custom menu set used by this script

                                                                                                                            Previous Script: [Close]Next Script: [Clear Fields]
                                                                                                                            Script NameClose All
                                                                                                                            Run script with full access privilegesOff
                                                                                                                            Siri Shortcut VisibleOff
                                                                                                                            Include In MenuYes
                                                                                                                            Layouts that use this script
                                                                                                                              Scripts that use this script
                                                                                                                                Script Definition
                                                                                                                                Script Steps
                                                                                                                                • Set Variable [ $r; Value:MBS("Phidget.ReleaseAll") ]
                                                                                                                                • Set Variable [ $$phidget; Value:"" ]
                                                                                                                                • Set Field [ Phidget IR Receiver::LastEvent; "" ]
                                                                                                                                • Perform Script [ “Clear Fields” ]
                                                                                                                                Fields used in this script
                                                                                                                                Scripts used in this script
                                                                                                                                Layouts used in this script
                                                                                                                                  Tables used in this script
                                                                                                                                  Table occurrences used by this script
                                                                                                                                  Custom Functions used by this script
                                                                                                                                    Custom menu set used by this script

                                                                                                                                      Previous Script: [Close All]Next Script: [-]
                                                                                                                                      Script NameClear Fields
                                                                                                                                      Run script with full access privilegesOff
                                                                                                                                      Siri Shortcut VisibleOff
                                                                                                                                      Include In MenuNo
                                                                                                                                      Layouts that use this script
                                                                                                                                        Scripts that use this script
                                                                                                                                        Script Definition
                                                                                                                                        Script Steps
                                                                                                                                        • Set Field [ Phidget IR Receiver::DeviceName; "" ]
                                                                                                                                        • Set Field [ Phidget IR Receiver::DeviceSerialNumber; "" ]
                                                                                                                                        • Set Field [ Phidget IR Receiver::DeviceID; "" ]
                                                                                                                                        • Set Field [ Phidget IR Receiver::DeviceLabel; "" ]
                                                                                                                                        • Set Field [ Phidget IR Receiver::Channel; "" ]
                                                                                                                                        • Set Field [ Phidget IR Receiver::ChannelClass; "" ]
                                                                                                                                        • Set Field [ Phidget IR Receiver::ChannelClassName; "" ]
                                                                                                                                        • Set Field [ Phidget IR Receiver::ChannelSubclass; "" ]
                                                                                                                                        • Set Field [ Phidget IR Receiver::BitCount; "" ]
                                                                                                                                        • Set Field [ Phidget IR Receiver::IsRepeat; "" ]
                                                                                                                                        • Set Field [ Phidget IR Receiver::Code; "" ]
                                                                                                                                        • Set Field [ Phidget IR Receiver::JSON; "" ]
                                                                                                                                        • Commit Records/Requests [ No dialog ]
                                                                                                                                        Fields used in this script
                                                                                                                                        Scripts used in this script
                                                                                                                                          Layouts used in this script
                                                                                                                                            Tables used in this script
                                                                                                                                            Table occurrences used by this script
                                                                                                                                            Custom Functions used by this script
                                                                                                                                              Custom menu set used by this script

                                                                                                                                                Previous Script: [Clear Fields]Next Script: [Attached]
                                                                                                                                                Script Name-
                                                                                                                                                Run script with full access privilegesOff
                                                                                                                                                Siri Shortcut VisibleOff
                                                                                                                                                Include In MenuNo
                                                                                                                                                Layouts that use this script
                                                                                                                                                  Scripts that use this script
                                                                                                                                                    Script Definition
                                                                                                                                                    Script Steps
                                                                                                                                                      Fields used in this script
                                                                                                                                                        Scripts used in this script
                                                                                                                                                          Layouts used in this script
                                                                                                                                                            Tables used in this script
                                                                                                                                                              Table occurrences used by this script
                                                                                                                                                                Custom Functions used by this script
                                                                                                                                                                  Custom menu set used by this script

                                                                                                                                                                    Previous Script: [-]Next Script: [CodeReceived]
                                                                                                                                                                    Script NameAttached
                                                                                                                                                                    Run script with full access privilegesOff
                                                                                                                                                                    Siri Shortcut VisibleOff
                                                                                                                                                                    Include In MenuNo
                                                                                                                                                                    Layouts that use this script
                                                                                                                                                                      Scripts that use this script
                                                                                                                                                                        Script Definition
                                                                                                                                                                        Script Steps
                                                                                                                                                                        • Set Field [ Phidget IR Receiver::LastEvent; "Attached at " & Get(CurrentTimestamp) ]
                                                                                                                                                                        • Set Variable [ $r; Value:MBS("Log"; "Attached at " & Get(CurrentTimestamp)) ]
                                                                                                                                                                        • Set Variable [ $parameter; Value:Get(ScriptParameter) ]
                                                                                                                                                                        • Set Variable [ $phidget; Value:JSONGetElement ( $parameter ; "ID" ) ]
                                                                                                                                                                        • #set change trigger to not run so often
                                                                                                                                                                        • Set Variable [ $r; Value:MBS( "Phidget.SetProperty"; $phidget; "DataInterval"; 1000 ) ]
                                                                                                                                                                        • Set Variable [ $r; Value:MBS( "Phidget.SetProperty"; $phidget; "DistanceChangeTrigger"; ,1 ) ]
                                                                                                                                                                        • Set Variable [ $r; Value:MBS( "Phidget.SetScriptTrigger"; $phidget; "Code"; Get(FileName); "CodeReceived" ) ]
                                                                                                                                                                        • Set Field [ Phidget IR Receiver::DeviceName; MBS("Phidget.GetProperty"; $phidget; "DeviceName") ]
                                                                                                                                                                        • Set Field [ Phidget IR Receiver::DeviceSerialNumber; MBS("Phidget.GetProperty"; $phidget; "DeviceSerialNumber") ]
                                                                                                                                                                        • Set Field [ Phidget IR Receiver::DeviceID; MBS("Phidget.GetProperty"; $phidget; "DeviceID") ]
                                                                                                                                                                        • Set Field [ Phidget IR Receiver::DeviceLabel; MBS("Phidget.GetProperty"; $phidget; "DeviceLabel") ]
                                                                                                                                                                        • Set Field [ Phidget IR Receiver::Channel; MBS("Phidget.GetProperty"; $phidget; "Channel") ]
                                                                                                                                                                        • Set Field [ Phidget IR Receiver::ChannelClass; MBS("Phidget.GetProperty"; $phidget; "ChannelClass") ]
                                                                                                                                                                        • Set Field [ Phidget IR Receiver::ChannelClassName; MBS("Phidget.GetProperty"; $phidget; "ChannelClassName") ]
                                                                                                                                                                        • Set Field [ Phidget IR Receiver::ChannelSubclass; MBS("Phidget.GetProperty"; $phidget; "ChannelSubclass") ]
                                                                                                                                                                        • Set Field [ Phidget IR Receiver::BitCount; "" ]
                                                                                                                                                                        • Set Field [ Phidget IR Receiver::IsRepeat; "" ]
                                                                                                                                                                        • Set Field [ Phidget IR Receiver::Code; "" ]
                                                                                                                                                                        • Commit Records/Requests [ No dialog ]
                                                                                                                                                                        Fields used in this script
                                                                                                                                                                        Scripts used in this script
                                                                                                                                                                          Layouts used in this script
                                                                                                                                                                            Tables used in this script
                                                                                                                                                                            Table occurrences used by this script
                                                                                                                                                                            Custom Functions used by this script
                                                                                                                                                                              Custom menu set used by this script

                                                                                                                                                                                Previous Script: [Attached]Next Script: [Detached]
                                                                                                                                                                                Script NameCodeReceived
                                                                                                                                                                                Run script with full access privilegesOff
                                                                                                                                                                                Siri Shortcut VisibleOff
                                                                                                                                                                                Include In MenuNo
                                                                                                                                                                                Layouts that use this script
                                                                                                                                                                                  Scripts that use this script
                                                                                                                                                                                    Script Definition
                                                                                                                                                                                    Script Steps
                                                                                                                                                                                    • Set Variable [ $json; Value:Get(ScriptParameter) ]
                                                                                                                                                                                    • Set Field [ Phidget IR Receiver::LastEvent; "Change at " & Get(CurrentTimestamp) ]
                                                                                                                                                                                    • Set Field [ Phidget IR Receiver::Code; JSONGetElement ( $json ; "code" ) ]
                                                                                                                                                                                    • Set Field [ Phidget IR Receiver::IsRepeat; JSONGetElement ( $json ; "isRepeat" ) ]
                                                                                                                                                                                    • Set Field [ Phidget IR Receiver::BitCount; JSONGetElement ( $json ; "bitCount" ) ]
                                                                                                                                                                                    • Set Field [ Phidget IR Receiver::JSON; $json ]
                                                                                                                                                                                    Fields used in this script
                                                                                                                                                                                    Scripts used in this script
                                                                                                                                                                                      Layouts used in this script
                                                                                                                                                                                        Tables used in this script
                                                                                                                                                                                        Table occurrences used by this script
                                                                                                                                                                                        Custom Functions used by this script
                                                                                                                                                                                          Custom menu set used by this script

                                                                                                                                                                                            Previous Script: [CodeReceived]
                                                                                                                                                                                            Script NameDetached
                                                                                                                                                                                            Run script with full access privilegesOff
                                                                                                                                                                                            Siri Shortcut VisibleOff
                                                                                                                                                                                            Include In MenuNo
                                                                                                                                                                                            Layouts that use this script
                                                                                                                                                                                              Scripts that use this script
                                                                                                                                                                                                Script Definition
                                                                                                                                                                                                Script Steps
                                                                                                                                                                                                • Set Field [ Phidget IR Receiver::LastEvent; "Detached at " & Get(CurrentTimestamp) ]
                                                                                                                                                                                                • Set Variable [ $r; Value:MBS("Log"; "Detached at " & Get(CurrentTimestamp)) ]
                                                                                                                                                                                                • Set Variable [ $parameter; Value:Get(ScriptParameter) ]
                                                                                                                                                                                                • Perform Script [ “Clear Fields” ]
                                                                                                                                                                                                Fields used in this script
                                                                                                                                                                                                Scripts used in this script
                                                                                                                                                                                                Layouts used in this script
                                                                                                                                                                                                  Tables used in this script
                                                                                                                                                                                                  Table occurrences used by this script
                                                                                                                                                                                                  Custom Functions used by this script
                                                                                                                                                                                                    Custom menu set used by this script

                                                                                                                                                                                                      Download example: Phidget IR Receiver

                                                                                                                                                                                                      Used functions: