From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, 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
(12,204 Views)

Could you please elaborate bit more.

Thanks,

Mathan

0 Kudos
Message 2 of 14
(12,201 Views)
In general, by using Mouse Move event.
Message 3 of 14
(12,187 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
(12,169 Views)
thanx guys i actually need my mouse position when i move it along my front panel.
0 Kudos
Message 5 of 14
(12,151 Views)

Hi muks,

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

Hope it helps.
Mike

Message 6 of 14
(12,149 Views)
 you elaborate on that a lil bit mike?
0 Kudos
Message 7 of 14
(12,147 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
(12,138 Views)
As always u rock mike!!!!!!Robot Mad
0 Kudos
Message 9 of 14
(12,132 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
(12,131 Views)