I have started using the My-T-Soft keyboard to develop a kiosk application but I am having some problems with the startup. I am using ASP with Internet Explorer for my kiosk and the problem is how to start the application behind the browser or off screen. The way I am starting it is by placing a shortcut in the startup folder so that when the machine boots, it starts mytsoft.exe and waits for movewmts.exe to move it around. Sometimes due to startup timing, the keyboard appears in front of the browser and there is no way to move it off screen until the user gets to the proper page.
Is there a way to start the application offscreen or is there an object interface I can use to control the keyboard?
The preferred way to manage this type of configuration is to start the keyboard off-screen, so the user does not see it at all, until your application requires it. If the configuration (e.g. panels/size) is fixed, you only need to use MoveWMTS.exe (or Windows API MoveWindow) to bring it on-screen for the user, then dismiss it off-screen when not needed.
The simplest way to do this (with My-T-Soft 1.77) is to specify the X/Y position in the startup shortcut. If you right-click on the Start Menu, select Explore all users, then go to Programs | Startup, you should see the My-T-Soft icon. If you go into properties for the startup, you can modify the "target" from "C:\WINDOWS\MYTSOFT\MYTSOFT.EXE" to "C:\WINDOWS\MYTSOFT\MYTSOFT.EXE X=1400 y=0", as an example (X position of 1400 is off-screen for most commmon resolutions).
The alternative approach is to specify the default opening position in the KEYBOARD.KBF file - the file KEYBOARD.KBF determines the layout, size, and opening screen position. To save an opening position off-screen, it is best to use the Developer's Kit. If you operate in a Windowed command prompt, you can use MoveWMTS.exe to move offscreen, then use SvSetMTS.exe and SvPosMTS.exe to lock down the configuration & position. Now use CloseMTS.exe to close the not visible, off-screen layout. Now at Startup, the default screen position will be off-screen.
|Category: Integrating(Developing)||Type: Question/Answer||Product: My-T-Soft||Version: 1.77|