Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

simulate a button click without pressing the mouse button

Hi,

 

I would like to simulate a button click from Labwindows/CVI code without using the mouse actually click that button.

 

Let say I have a button call "Send Data" and I try to active this function inside the code (I think similar to SendKey function).

 

I have done a simulate button click function in Boland C++ long time ago but I could not find any example in LabWindows does this.

 

Anyone knows about this and please let me know.

 

Thanks,

 

wyu

 

 

 

0 Kudos
Message 1 of 4
(3,831 Views)

Hi Wyu,

 

When you say simulate a button click, do you mean a mouse click or pressing a button?  Assuming you mean the mouse, you can simulate a mouse or key press using the Windows user32.dll.  There a lots of examples out there of how to do this.

 

Cheers,

0 Kudos
Message 2 of 4
(3,806 Views)
0 Kudos
Message 3 of 4
(3,804 Views)
0 Kudos
Message 4 of 4
(3,798 Views)