Skip to main content

Application Handlers

Application Handlers allow for customized code, written in JavaScript, VBScript, C# or VB.Net, to be run when a specific application Window Title gets focus. It is intended to help extend the functionality of Fluency Direct in a context specific way.

Application Handlers are typically used to do screen scraping or other EHR discovery methods to load application specific grammars, patient context, or other application tracking. For example, you may want specific logic to run for Epic, but other logic for Microsoft Word. Scoping can be done with a “contains” match on the window title or more complex use of regular expressions against the window title text.

Please note that Applications Handlers are not typically written by end users, but software developers looking to extend the functionality of Fluency Direct.

Define Application Handler

It is possible to define an Application Handler for a single user or publish the Application Handler across many users in much the same way an Administrator can publish commands and dictionary entries. Once the Application Handler is defined within a group, it will be automatically used by members of that group.

Inside the Application Handler you have full access to FD and ScriptUtils functions and methods the same way it is possible to use them inside FD Command Scripting. You also have access to the full features of the defined programming language whether it is JavaScript, VBScript, C# or VB.Net.

image139.png

Name – A Unique Description for the Application Handler. It should reasonably describe what the Application Handlerdoes and how it is different from other application Handlers.

Window Title – Specify the Window Title that this application Handler should activate. You can specify a match by using simple “contains logic”.

Defining Window Title as “Note” will trigger the Application Handler in Windows containing titles such as “Note”, “Notepad” or “Notepad++”. Defining Window Title as “Note|Word” will trigger the Application Handler in Windows containing titles such as “Note”, “Notepad”, “Notepad++”, “Microsoft Word” or “Wordpad”.