LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to simulate mouse click

Hello,
is it possible to simulate and control a mouse click in windows with labview 7.1. I am able to control the mouse coordinates but not right and left mouse click. Is there a available VI that can do that?
Lukas
0 Kudos
Message 1 of 5
(9,557 Views)
Salutations,

I'm not exactly sure what you're attempting to imply by "control a mouse click", however in the "event structure" area there is the option to have responses fired when mouse clicks occur; controlling both right and left mouse clicks. This isn't always the most pleasureable way of doing things, because it refers to any click. You might be able to set it up to ensure only clicks in certain areas, however this will take some research on your part. Just look through how to control event structures, the mouse option is under the "this vi" (or so i believe the name goes) section.

Best of wishes,
ElSmitho
0 Kudos
Message 2 of 5
(9,546 Views)
I have answered this in the other thread where you asked this. Please don't post the same questions to multiple threads.
After looking at the VI there, it uses the PostMessage function to post a mouse down message to a specific window. You can try using MouseEvent or SendInput to simulate a general mouse click (One of them is no longer supported, I can't remember which. You can find the details in the MSDN).

___________________
Try to take over the world!
0 Kudos
Message 3 of 5
(9,539 Views)
Hi,
I am new in Labview, so is there an available Vi that gererate random mouse clicks. I think that mouse clicks can be done with a boolean control? is that right. So what would help me is a VI where i can control the entry (perhaps with a boolean) and then with this control execute a mouse click (if possible right and left click) on the windows front panel .
Lukas
0 Kudos
Message 4 of 5
(9,535 Views)
This has been answered Here.

___________________
Try to take over the world!
Message 5 of 5
(9,522 Views)