LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

touchpad for LabWindows/CVI

I am trying to create a popup for LabWindows/CVI using a touchscreen interface. I tried using FakeKeyStroke to post the keys to my control. If I use the keyboard the value can be entered correctly. When using the softkeys, the control does not respond as expected. Can anyone see why this is not working?
0 Kudos
Message 1 of 2
(2,666 Views)
I played with it for awile and heres one mans opinion.

To see what I saw comment out the three lines which actually fake the keystroke to the control. Run the program (notice that the numeric display is highlighted). Remove the highlight by clicking inside it and then hit any button to simulate a keystroke. Notice that the numbers are highlighted again. This is from shifting the focus to the control again. So the full story: hitting one of the simulated buttons is over writing any contents currently contained within it. Only work around I can think of right now (im tired) would be to first simulate a mouse click (or something else which works) to remove the text selection before the fake key is sent to the display...
0 Kudos
Message 2 of 2
(2,660 Views)