|IMG Developer's Kit: Developer's Kit Guide and Technical Documentation; Version 1.90; User's Guide|
|Prev||Chapter 7. Language and Platform Examples||Next|
FOLDER: IEXPLORE / IEXPLORE/WebSync
TYPE: Web Pages, utility / stand-alone executable with source
IDE: Microsoft Visual C++ 6
Note: Option 2 will work with My-T-Soft "Out of the box" and the Developer's Kit (DEVKIT)
Program name: WEBSYNC.EXE
Program Arguments: NONE
Requires: 1.70 version
Description: WebSync monitors for the MTSCMD.TXT file based on its delay - if it finds the file, it will process it and "execute" the command. Review OVERVIEW.HTM in a browser for VBScript, and further details.
The IEXPLORE Folder contains:
WebSync - WEBSYNC.EXE
These HTML files are used as a starting point for the appropriate examples. The 1.77 version updates these with folders for My-T-Pen/My-T-Soft/My-T-Touch so modifications are not required to show off the examples.
Integrating with Internet Explorer
My-T-Soft used as an example / Integrated with Internet Explorer
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).
( 1) IEXPLORE contains folders for each product with 2 sets of 2 HTM files for the appropriate version of windows (EDTPAGEW.HTM, OVRVIEWW.HTM for use with versions of Windows that use a WINDOWS folder, and EDTPAGEN.HTM, OVRVIEWN.HTM for use with versions of Windows that use a WINNT folder)
( 2) Run WEBSYNC.EXE to run WebSync
( 3) Make sure you have My-T-Soft running, it is not minimized, and you have a keyboard open at about size 8
( 4) Select the appropriate folder & file for your version of Windows and installed product. (EDTPAGE? will be referred to as EDITPAGE and OVRVIEW? Will be referred to as OVERVIEW) 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
( 5) All the details about the VBScript approach and WebSync are in the OVERVIEW.HTM - refer to this for notes & implementation details
( 6) Review OVERVIEW.HTM and the Web page "source" to see details.
( 7) 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.
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.
Version 1.77 July 7, 2003
Copyright 2001-2003 by Innovation Management Group, Inc.
All Rights Reserved.
My-T-Mouse, My-T-Pen, My-T-Touch, and My-T-Soft are registered trademarks of Innovation Management Group, Inc.