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

MBS FileMaker Plugin Example Databases

Windows OCR

All examples are included with download of MBS FileMaker Plugin.

Windows OCR.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts4
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
Windows OCR
8 fields defined, 1 record
Windows OCR

Fields

Table Name: Windows OCR - 8 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
                                          InputImageNormal, BinaryAuto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                              LanguageNormal, TextAuto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Repetitions: 1
                                              • Indexing: None
                                              • Automatically create indexes as needed
                                              • Index Language: German
                                                  TextNormal, TextAuto-Enter:
                                                  • Allow editing
                                                  Validation:
                                                  • Only during data entry
                                                  Storage:
                                                  • Repetitions: 1
                                                  • Indexing: None
                                                  • Automatically create indexes as needed
                                                  • Index Language: German

                                                      Layout Objects: Windows OCR

                                                      Regular Fields

                                                      Field Name: Windows OCR::InputImage
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 56 pt
                                                      • Left: 138 pt
                                                      • Bottom: 282 pt
                                                      • Right: 724 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
                                                      No

                                                      Field Name: Windows OCR::Language
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 291 pt
                                                      • Left: 139 pt
                                                      • Bottom: 323 pt
                                                      • Right: 724 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: Windows OCR::Text
                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                      • Top: 327 pt
                                                      • Left: 139 pt
                                                      • Bottom: 553 pt
                                                      • Right: 724 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: Available?
                                                      • Top: 58 pt
                                                      • Left: 732 pt
                                                      • Bottom: 90 pt
                                                      • Right: 985 pt
                                                      • Anchoring: Left, Top
                                                      Perform Script [ “Check Available” ]

                                                      Scripts:


                                                      Button PropertiesCoordinatesScript/Script Step
                                                        Type:
                                                      • Text: Recognize
                                                      • Top: 104 pt
                                                      • Left: 732 pt
                                                      • Bottom: 136 pt
                                                      • Right: 985 pt
                                                      • Anchoring: Left, Top
                                                      Perform Script [ “Scan” ]

                                                      Scripts:


                                                      Button PropertiesCoordinatesScript/Script Step
                                                        Type:
                                                      • Text: Available Languages?
                                                      • Top: 150 pt
                                                      • Left: 732 pt
                                                      • Bottom: 182 pt
                                                      • Right: 985 pt
                                                      • Anchoring: Left, Top
                                                      Perform Script [ “Query Languages” ]

                                                      Scripts:


                                                      Script Hierarchy

                                                      Check Available
                                                      Query Languages
                                                      Scan
                                                      Clear

                                                      Next Script: [Query Languages]
                                                      Script NameCheck Available
                                                      Run script with full access privilegesOff
                                                      Include In MenuYes
                                                      Layouts that use this script
                                                      Scripts that use this script
                                                        Script Definition
                                                        Script Steps
                                                        • Set Variable [ $r; Value:MBS( "WindowsOCR.Available" ) ]
                                                        • If [ $r = 1 ]
                                                        • Show Custom Dialog [ Title: "Windows OCR"; Message: "Available"; Default Button: “OK”, Commit: “Yes” ]
                                                        • Else If [ $r = 0 ]
                                                        • Show Custom Dialog [ Title: "Windows OCR"; Message: "Not available"; Default Button: “OK”, Commit: “Yes” ]
                                                        • Else
                                                        • Show Custom Dialog [ Title: "Windows OCR"; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                                                        • 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: [Check Available]Next Script: [Scan]
                                                                      Script NameQuery Languages
                                                                      Run script with full access privilegesOff
                                                                      Include In MenuYes
                                                                      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: [Query Languages]Next Script: [Clear]
                                                                                      Script NameScan
                                                                                      Run script with full access privilegesOff
                                                                                      Include In MenuYes
                                                                                      Layouts that use this script
                                                                                      Scripts that use this script
                                                                                        Script Definition
                                                                                        Script Steps
                                                                                        • Set Field [ Windows OCR::Text; "" ]
                                                                                        • If [ IsEmpty ( Windows OCR::InputImage ) ]
                                                                                        • Show Custom Dialog [ Title: "Windows OCR"; Message: "No input image?"; Default Button: “OK”, Commit: “Yes” ]
                                                                                        • Exit Script [ ]
                                                                                        • End If
                                                                                        • #Now initialize
                                                                                        • Set Variable [ $ocr; Value:MBS( "WindowsOCR.New"; Windows OCR::Language) ]
                                                                                        • If [ MBS("IsError") ]
                                                                                        • Show Custom Dialog [ Title: "Windows OCR"; Message: "Failed to intiialize: " & $ocr; Default Button: “OK”, Commit: “Yes” ]
                                                                                        • Else
                                                                                        • Set Variable [ $r; Value:MBS( "WindowsOCR.Recognize"; $ocr; Windows OCR::InputImage) ]
                                                                                        • If [ MBS("IsError") ]
                                                                                        • Show Custom Dialog [ Title: "Windows OCR"; Message: "Failed to recognize: " & $r; Default Button: “OK”, Commit: “Yes” ]
                                                                                        • Else
                                                                                        • Set Field [ Windows OCR::Text; MBS( "WindowsOCR.Text"; $ocr ) ]
                                                                                        • End If
                                                                                        • Set Variable [ $r; Value:MBS( "WindowsOCR.Release"; $ocr) ]
                                                                                        • 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: [Scan]
                                                                                                Script NameClear
                                                                                                Run script with full access privilegesOff
                                                                                                Include In MenuYes
                                                                                                Layouts that use this script
                                                                                                  Scripts that use this script
                                                                                                    Script Definition
                                                                                                    Script Steps
                                                                                                    • Set Field [ Windows OCR::Text; "" ]
                                                                                                    • Set Field [ Windows OCR::Language; "" ]
                                                                                                    • Set Field [ Windows OCR::InputImage; "" ]
                                                                                                    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: Windows OCR

                                                                                                            Used functions: