04-09-2013 12:36 PM
On a normal labview VI it is possible to configure the desired key navigation options such as assigning a keyboard short cut to a control. Is it possible in some way also to assign keyboard short cut's to the visible Teststand Active-X controls i.eg. the Teststand button on a labview based custom UI ?
Please help
Solved! Go to Solution.
04-11-2013 05:40 AM
You may be able to do it by cloning every button, assigning a shortcut to the clone, and then triggering an event and calling the 'DoClick' method of the TestStand button - I say may as I can't verify that the DoClick method will do what you want.
Obviously can hide the clones on the front panel if neccessary.
04-14-2013 04:54 PM
thanks for your reply. Implemented and tested!
04-15-2013 10:43 AM
Maybe filter for VKey and ASCII values?
See attachment.
04-15-2013 12:10 PM
Alternatively, you can configure the shortcuts using the strings in the UIControlStrings.ini file, which defines the text that is used for the buttons. It is located here:
<TestStand>\Components\Language\English\UIControlStrings.ini
In this file, the "&" symbol is used to define the hotkey. for example, for the string "&Open Sequence File...", the hotkey is defined as "Ctrl + O". I would recommend creating a copy of this file in the TestStand public directory, and modifying the copy rather than directly modifying this file. this location is by default:
C:\Users\Public\Documents\National Instruments\TestStand <x>\Components\Language\English
04-16-2013 02:15 AM
Hi
Thanks for the reply.
I thought of this as well, but my challenge is that my customer specifies other short cuts than the default ones!
04-16-2013 12:06 PM
To Clarify, you can change the strings such that a new hotkey is assigned. for examples, changing the string "&Open Sequence File..." to "O&pen Sequence File...", changes the hotkey to ctrl+P. If the requirement is to change the modifiers, than this method will not be effective.
04-16-2013 03:54 PM
Okay, now we are talking busyness !!