LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

mouse buttons in LabWindows

Is there a way to fake mouse button presses in LW/CVI?
(Actually, I'm trying to programmatically expand a ring control as if the down arrow was selected. Can't find an attribute for this.)
0 Kudos
Message 1 of 3
(2,717 Views)
You could do it using FakeKeystroke and sending a space character to simulate pressing the spacebar. First, you would set the ring to be the active control, then you would send an ASCII space (0x20). You code would look like:

SetActiveCtrl (panelHandle, PANEL_RING);
FakeKeystroke (0x20);

Best Regards,

Chris Matthews
National Instruments
Message 2 of 3
(2,717 Views)
hello,

I am trying to do the exact same thing with LabVIEW 7.1...

would you have the LabVIEW version of this code ?

Regards,
0 Kudos
Message 3 of 3
(2,717 Views)