NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending arrow key in a string

I'm trying to build a TestStand 4.0 application that will answer initial Solaris Configuration messages (text-based menus). One of the menus requires using arrow keys to move the cursor up/down to the correct choice. How do I send the arrow keys? Is there a hex code?
0 Kudos
Message 1 of 2
(2,946 Views)

BKOCH1,

 

I am not entirely clear on your application. One way of simulating a keypress would be to use one of the methods in a windows DLL. The example at the location below simulates key presses using LabVIEW. This LabVIEW code module can be called from within TestStand. I'm not sure whether the enumerated list in the LabVIEW vi actually has an input for the arrow key, but if it doesn't, it might be possible to find out what the DLL does exactly so that something slightly modified can be accomplished.

 

http://decibel.ni.com/content/docs/DOC-9001

 

If this is not applicable to your situation, then perhaps there is a similar library available in Solaris that allows you access to the key presses. In which case, you can write an application in any other language (C, C++, etc)  to access that library to simulate a keypress and call that code module from within TestStand.

Raj
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,915 Views)