From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mouse position

How do you determine the mouse position dynamically?
0 Kudos
Message 1 of 14
(11,928 Views)

Could you please elaborate bit more.

Thanks,

Mathan

0 Kudos
Message 2 of 14
(11,925 Views)
In general, by using Mouse Move event.
Message 3 of 14
(11,911 Views)

Use the VI's Mouse Move event if your LV version < 8.x, or the Pane's Mouse Move event if you have LV 8.x. Smiley Happy

You ll get to see the Coordinates output in the event data node on the left border of teh Event Structure.

- Partha ( CLD until Oct 2024 🙂 )
Message 4 of 14
(11,893 Views)
thanx guys i actually need my mouse position when i move it along my front panel.
0 Kudos
Message 5 of 14
(11,875 Views)

Hi muks,

you can also use the "GetCursorPos" function from the User32.dll.

Hope it helps.
Mike

Message 6 of 14
(11,873 Views)
 you elaborate on that a lil bit mike?
0 Kudos
Message 7 of 14
(11,871 Views)
Hi muks,
this is the function to get the cursor position.
 
 
Mike


Message Edited by MikeS81 on 07-11-2008 08:41 AM
Message 8 of 14
(11,862 Views)
As always u rock mike!!!!!!Robot Mad
0 Kudos
Message 9 of 14
(11,856 Views)
LabVIEW has Input device VIs for those functions.
And especially the Mouse Input.



But when you want the know the position on the front panel I would go for FP events.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 10 of 14
(11,855 Views)