IMG Developer's Kit: Developer's Kit Guide and Technical Documentation; Version 1.90; User's Guide | ||
---|---|---|
Prev | Chapter 2. Developer's Corner | Next |
Integrating with Internet Explorer
My-T-Soft used as an example / Integrated with Internet Explorer
Option 1
You can trigger events within My-T-Soft by using WebSync and VBScript (or other scripting method that can create a file on the client system).
HREF="./webdev.exe">Download WEBDEV.EXE (39K)
( 1) WEBDEV contains 2 HTM files and WebSync (EDITPAGE.HTM, OVERVIEW.HTM, WEBSYNC.EXE)
( 2) Download this file and using Windows Explorer copy to the default folder (\WINDOWS\MYTSOFT or \WINNT\MYTSOFT)
( 3) Double-click on WEBDEV.EXE to extract the 3 files (Note: You may need to close the DOS window after it runs and extracts files) (or use WinZip)
( 4) Double-click on WEBSYNC.EXE to run WebSync
( 5) Make sure you have My-T-Soft running, it is not minimized, and you have a keyboard open at about size 8
( 6) Double-click on EDITPAGE.HTM - this should open Internet Explorer - if you are on Windows 98, My-T-Soft, you should see the keyboard position itself on EDITPAGE, and hide on OVERVIEW - the 2 pages are linked to illustrate this approach of using the Devevloper's Kit & VBScript with WebSync
( 7) All the details about the VBScript approach and WebSync are in the OVERVIEW.HTM - refer to this for notes & implementation details
( 8) If you are running Windows NT/2000 or My-T-Pen/My-T-Touch, you will have to modify EDITPAGE.HTM and OVERVIEW.HTM to view example
( 9) Review OVERVIEW.HTM and the Web page "source" to see details.
(10) Quick Note: This example uses VBScript to communicate externally to WebSync, which uses the pre-compiled Developer's Kit executables to manipulate My-T-Soft.
Option 2
You can trigger events within My-T-Soft by using the My-T-Soft Setup | Configuration | Special Options' Run command. This works best if you only have a small number of pages where you need a keyboard configuration, and/or you aren't using an advanced browser. The following example assumes you have 1 page with a form on it (where the keyboard is required), and a second page indicating proper submission.
( 1) You need the window names (the "TITLE" tag for the HTML page) - assuming you are in control of these, you should create a small, but unique title to each page you want to trigger on.
( 2) Run My-T-Soft Setup | Configuration | Special Options.
( 3) Enter the text for the "form" window in the drop-down combo edit box (Application Window Name), e.g. "Please fill out form"
( 4) Click on Run EXE radio button, Browse to select Developer's Kit EXE (e.g. C:\WINDOWS\MYTSOFT\DEVKIT\MOVEWMTS.EXE)
( 5) Add command line parameters (C:\WINDOWS\MYTSOFT\DEVKIT\MOVEWMTS.EXE x:20 y:344)
( 6) Click OK
( 7) Repeat for second window, click on Special Options
( 8) Enter the text for the "submitted" window in the drop-down combo edit box (Application Window Name), e.g. "Thank you!"
( 9) Click on Run EXE radio button, Browse to select Developer's Kit EXE (e.g. C:\WINDOWS\MYTSOFT\DEVKIT\MOVEWMTS.EXE)
(10) Add command line parameters (C:\WINDOWS\MYTSOFT\DEVKIT\MOVEWMTS.EXE x:2000 y:344)
(11) Click OK
(12) Test with web pages
(13) Notes: You need at least 2 windows to make operation work as you'd expect. To prevent an infinite loop, the Run EXE runs, and then is locked out until a different Run EXE event is triggered.
(14) The "React to Dialogs..." in My-T-Soft Setup | Configuration | Operation Options must be checked on to allow monitoring active windows.
(15) Only 64 characters from the Window Text (Window Name) are checked, and there is a max of 32 characters allowed in Special Options
(16) The name entered is matched against the whole name, so "Word" will match WordPad, Microsoft Word, WordPerfect, etc.
(17) This will drag on system resources, and may cause problems if you get a large number of entries in Special Options - this will depend on the speed of the system, memory, other applications running, etc., etc. so the exact number your particular system can handle before you notice speed issues will vary. This is really meant for just a handful of specific windows, not a 100 different configurations.
As seen in ...