LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to place mouse pointer on top of a front panel control or indicator?

Solved!
Go to solution

I need to programmatically set the mouse cursor position on top of a control when the program starts.  Attached is a simplified version of what I want to do.  In the example I want the cursor to be on top of, or near, the Control Point boolean indicator.  I've tried using panel and screen coordinates but neither gives the correct position.  I think I need to add or subtract some other value, perhaps the screen coordinates of one corner of the Labview front panel but I can't figure out how to proceed.

0 Kudos
Message 1 of 5
(1,216 Views)
Solution
Accepted by topic author bgoolsby

Can't open your VI (we're locked at no later than LV 2021).

Maybe you can extract what you need from the attached files.

"If you weren't supposed to push it, it wouldn't be a button."
Message 2 of 5
(1,206 Views)

Here's the VI in LV 2019.  I'll check out the VIs you sent.

0 Kudos
Message 3 of 5
(1,188 Views)

You should use the Window Bounds property instead. Programmatically Move the Front Panel to a Desired Position Using LabVIEW

However, I haven't figured out why we need to subtract a certain number.

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 4 of 5
(1,168 Views)

This works perfectly - thank you!

0 Kudos
Message 5 of 5
(1,163 Views)