This HTML file contains VBScript to create a file called MTSCMD.TXT which contains a command to be executed by WebSync. My-T-Soft 1.70 with the Developer's Kit installed, along with WEBSYNC.EXE, EDITPAGE.HTM, and OVERVIEW.HTM copied into the \WINDOWS\MYTSOFT folder will be required for this example to operate without modifications (Windows 95/98/Me). WebSync must be running, and it requires the My-T-Soft window to be available! You will want your security level set to allow scripts to run. You will want to edit the script function CreateAFile??? to execute the appropriate DevKit command to manipulate the My-T-Soft/My-T-Touch/My-T-Pen window as desired. This example uses the MoveWindow (MOVEWMTS) command.


To return to the Edit Page, click here.

Overview

VBScript is a common scripting language for web pages - it has many Visual Basic commands, along with a strong support for file manipulation. Because of security concerns, a client based Execute to directly run a client based program outside the web browser is not readily available. Because kiosk, thin-client, and other developer's can create a straightforward and effective application using only a web browser, there is a need to gain access to the My-T-Soft Developer's Kit directly from a web page. The VBScript language can easily accommodate the task of creating a file. The method used to accomplish the task of manipulating the keyboard from the web page is done as follows:

This effectively gives direct access to the web page developer to the My-T-Soft Developer's Kit. This does assume the Developer has control of the client machines (which is true in the case of kiosks and thin-clients, and other controlled application rollouts). This, of course, would also work for any client system that has the appropriate set of software available.

VBScript

The following is a sample function - (review this page's source for exact details on syntax)
Sub CreateAFileMTS
Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.CreateTextFile("c:\windows\mytsoft\mtscmd.txt", True)
MyFile.WriteLine("c:\windows\mytsoft\devkit\movewmts.exe x:3000 y:360")
MyFile.Close
End Sub

In script mode, the function is called.

VBScript Notes - required changes for different situations

WebSync

WebSync runs and places an icon in the Taskbar Tray (ShellNotifyIcon). You can configure WebSync to open without the splash screen. Run Internet Explorer in kiosk mode (iexplore -k) to hide the various windows components.

WebSync must be run from the same location where the MTSCMD.TXT file will be saved from the VBScript portion. You can view the About option for the current location monitored by WebSync.

Other Notes

The WebSync program creates the link from a file created by the VBScript script in a web page and the My-T-Soft Developer's Kit.

WebSync itself does not care anything about the command - it just passes it off to the Windows API call. Any valid command supported by CreateProcess will work, along with command line parameters. Note the carriage return (ANSI character 13) character cannot be part of the command, since this is seen as the end of the command line.

In general, specifying the exact path in the VBScript and in the command saved in MTSCMD.TXT is preferred.

Knowledge of the Developer's Kit is assumed. Note you can have different configurations available by saving them and then using the CPYCNMTS.EXE to display the various configurations.

To "hide" the keyboard, moving to X:3000 is done in the VBScript. Moving the window off-screen is the preferred way to remove it from the end-user. Closing or Minimizing can create other issues - to remove the keyboard from the user, move it off screen. Move it back on-screen with MOVEWMTS, or load a new configuration with CPYCNMTS.

Troubleshooting

Proper Operation: The My-T-Soft keyboard will appear when the Edit page is displayed in the browser (EDITPAGE.HTM), and disappear when the overview page is displayed (OVERVIEW.HTM)

If you don't see this operation, check the following items:
To return to the Edit Page, click here.
Copyright (c) 2001 by Innovation Management Group, Inc. All rights reserved. My-T-Mouse, My-T-Pen, My-T-Soft, and My-T-Touch are registered trademarks of Innovation Management Group, Inc.