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: QD2006120471

QD2006120471
I tried running Mytsoft.exe .kbf from a command line while a different keyboard is active and the software does not switch to the new configuration. I am running the exe from within the directory containing the .kbf file. Any suggestions?

This approach works with Build-A-Board layouts only when starting MYTSOFT.EXE - it does not allow you to change the layout from the already running process.

In MYTSOFT.EXE 2.10, you can select different layouts via a button using the CMD:NKBF (New KBF) if you want the user to switch on-the-fly. If you want to externally change the displayed layout on-the-fly, you need to do some dancing. It will make a bit more sense if I describe first what is going on, and then the details.

Assume there is a keyboard.kbf, and a mylayout.kbf.

In the code, everything is triggered off of an action (typically represented by a button press & the actual action is then generated by Build-A-Board). So the built-in way to change the layout is to execute the [CMD:NKBF=mylayout.kbf]. This can be put behind a button & this command (macro) placed into the Key Action in Build-A-Board. The trick is to generate this command externally. The TYPEFILE.EXE (see Tech Item PU2005120235, keystrokes longer than 30 characters) allows an external command to be triggered. The naming is unfortunate, since it can do more than just type a file. The salient point is that it can trigger a macro/command just as if the Key Action generated it. So the dance is to create a file with the [CMD:NKBF...] in it, save it as a file, then use TYPEFILE.EXE to execute from an external program - this will allow the layouts to change on the fly externally.

So here are the details. Download the TYPEFILE.EXE from our website (see link above). Place this & the mylayout.kbf in MSWIN folder of the project you are working with. Use a windowed command prompt to test, then once you have the syntax down, integrate it with your application.

Create 2 simple text files with the commands embedded in it (e.g. NOTEPAD or EDIT or COPY CON MYLAYOUT.KMF) Note I am using KMF for Keyboard Macro File, and the layout is KBF for KeyBoard File

Category: Integrating(Developing)Type: Question/Answer Product: Build-A-BoardVersion: 2.10

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