IMG Home PageIMG ProductsProduct DownloadsOrdering InformationTechnical Support and Frequently Asked QuestionsDeveloper's Corner and UtilitiesAbout IMG
CustomersIMG ResellersMedia InformationIMG Events / Trade ShowsUseful LinksIMG Contact InformationIMG Information / Policies

IMG KnowledgeBase & Frequently Asked Questions

IMG Logo



Search FAQ's

Keyword Keyword Search Help
Category Type Product Version

Searching for ID: QD1117120861

QD1117120861
How can we externally toggle between 2 different international keyboard layouts in My-T-Soft?

The easiest way to accomplish this is to use a Developer's Kit tool, the Copy and Configure My-T-Soft on the fly (CPYCNMTS.exe). For a general overview, see this How To note in the IMG Developer's Kit: Configure My-T-Soft on the fly (from pre-existing configurations). My-T-Soft is considered an application, and is in control of the user and/or the application with input focus using Developer's Kit tools. If the system level input language layout needs to change in conjunction with the My-T-Soft Layout, refer to the extension of this example with the link at the bottom of this item.

The following outlines a step-by-step procedure to follow. The required ingredients are:

Location of Configuration files (e.g. C:\Users\User\AppData\Roaming\Innovation Management Group\MYTSOFT)
CPYCNMTS.exe from the IMG Developer's Kit (i.e. My-T-Soft "DEVKIT" folder)
2 Configuration file sets (KEYBOARD.KBF/MYTSOFT.INI named appropriately)

Step 1 - Obtain the Configuration File location. With My-T-Soft running, right-click or use Menu button on Tool bar, and open My-T-Soft Setup. In My-T-Soft Setup, use File menu and select "Show Config File Location" Use Windows File Explorer or command prompt (CMD) and change to that location

Step 2 - Obtain CPYCNMTS.exe - download the IMG Developer's Kit here: Developer's Corner Downloads, or use the direct link: IMG Developer's Kit 1.79 Release 1. Download, Extract files, and from DEVKIT folder, find CPYCNMTS.exe, then copy to the Configuration File location from Step 1

Step 3 - Create layout configuration files. The overview is that you select layout & configure My-T-Soft how you want it to appear, then you save these settings and its position, close My-T-Soft, and copy off the configuration files (KEYBOARD.KBF/MYTSOFT.INI). The specific example will be for Italian and Japanese layouts, but you should create the appropriate layout configurations for your needs.

The example below is a test batch file to verify and ensure everything is configured and all files are correct - this can be tested/run from a command prompt or Explorer.

@echo off
cls
REM This toggles 2 layouts.
REM These files must exist:
REM JAPAN.CFG and JAPAN.INI for Japanese layout
REM ITALIAN.CFG and ITALIAN.INI for Italian layout
REM user is [Username] for current logged in user / application user
REM the actual path below is an example, will need to be updated for your usage

C:
cd "C:\Users\user\AppData\Roaming\Innovation Management Group\MYTSOFT"

IF exist LAYOUTJAPAN.CUR GOTO DOITALIAN
cpycnmts.exe JAPAN.CFG
copy JAPAN.CFG LAYOUTJAPAN.CUR
goto END
:DOITALIAN
cpycnmts.exe ITALIAN.CFG
DEL LAYOUTJAPAN.CUR

:END

The above batch file is not recommended as an ideal way to toggle these layouts. Ideally using the command "CPYCNMTS.exe [LAYOUT].CFG" directly would be the best way to trigger the visual change in My-T-Soft. If the batch file approach is used, creating a shortcut link to it and using the Run setting as Minimized may help with visual effects, and then running the shortcut (vs. the batch file directly) may be acceptable.

Typically the execution of the Developer's Kit Utility (CPYCNMTS.exe) would be done via an application, either embedded, or tied to an event like Field Exit or Field Enter, or under a button OnClick event.

Note there is a different utility called KeyboardSync (KYBDSYNC.exe) that monitors the current Input locale of an application, and can change My-T-Soft's layout to match the input locale. This utility is also in the IMG Developer's Kit

As a separate option, a key can be made to toggle layouts - refer to this Tech item for the steps required to setup a Key to run a Developer's Kit tool: Using Key Options

Note that using Developer's tools may depend on User Interface Privilege Isolation issues. If things do not operate as expected, it may be worth testing as Administrator and familiarizing yourself with these issues (see this blog post Understanding User Interface Privilege Isolation (UIPI) with My-T-Soft)

This approach just changes My-T-Soft. To externally change the current input language keyboard layout, a separate item that extends this example has been created - see How to Change the Current Input Language Keyboard Layout

Category: Integrating(Developing)Type: Question/Answer Product: My-T-SoftVersion: 1.78 1.79 1.80 1.90

Notes:



IMG Home PageIMG ProductsProduct DownloadsOrdering InformationTechnical Support and Frequently Asked QuestionsDeveloper's Corner and UtilitiesAbout IMG
CustomersIMG ResellersMedia InformationIMG Events / Trade ShowsUseful LinksIMG Contact InformationIMG Information / Policies


As seen in ...

Yahoo!finance