LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simulation of a mouse click on front panel

Hello, i sorry for the multiple post. its the first time i use the forum! The example is working fine for left mouse click

Is there a specific number to simulate a right mouse click? Instead of the number 2.

Thanks
Lukas
Lukas
0 Kudos
Message 11 of 19
(4,092 Views)
Lukas,

Please check out this thread about the same DLL call. You might also check out the MSDN reference given above.

It looks like right-click (down) is 8 and up is 16 (or 10 in hex).

--John
0 Kudos
Message 12 of 19
(4,084 Views)
Hello, thanks for the numbers its working fine. Just one problem, if i simulate a left mouse click (or right), the click is executed two times. Do you know a way to avoid that. Here the vi i was working with.
Lukas
0 Kudos
Message 13 of 19
(4,068 Views)
Lukas,

I don't see the double-click problem. I will tell you that I don't like the example you are using, because I don't find it to be very clear or to demonstrate good programming techniques (confusing, no comments, no stop button, etc.).

Attached is another example (LV 7.1) that might be more clear. When I run this, I do not see any double-click problems.

Regards,
John
Message 14 of 19
(4,050 Views)
Sorry, its working fine now.
Thanks
Lukas
0 Kudos
Message 15 of 19
(4,029 Views)
I was experimenting with the simulated mouse click vi in microsoft powerpoint. I would like to use the mouse click simulation to change slides in full screen mode. The simulated mouse clicker only changed the slide after I right clicked and moved the mouse over the right click menu. It worked delightfully Robot Very Happy . Does anyone know how to have the mouse click work without me first right clicking?
0 Kudos
Message 16 of 19
(3,751 Views)
Is this a LabVIEW or a Microsoft Powerpoint question?
0 Kudos
Message 17 of 19
(3,743 Views)
This is a labview question. The simulated mouse click will not perform any operations unless you right click first to open a drop down menu and then the mouse click will work on that menu. I would like the simulated mouse click to work without having to first open the drop down menu.
0 Kudos
Message 18 of 19
(3,739 Views)
You could try to control PowerPoint directly using ActiveX instead of simulating a mouse click.  There is an example VI that uses ActiveX to go through a slideshow located here:
 
Controlling MS PowerPoint with ActiveX and LabVIEW
Brian Coalson

Software Engineer
National Instruments
0 Kudos
Message 19 of 19
(3,699 Views)