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
(14,175 Views)

Could you please elaborate bit more.

Thanks,

Mathan

0 Kudos
Message 2 of 14
(14,172 Views)
In general, by using Mouse Move event.
Message 3 of 14
(14,158 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 2027 🙂 )
Message 4 of 14
(14,140 Views)
thanx guys i actually need my mouse position when i move it along my front panel.
0 Kudos
Message 5 of 14
(14,122 Views)

Hi muks,

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

Hope it helps.
Mike

Message 6 of 14
(14,120 Views)
 you elaborate on that a lil bit mike?
0 Kudos
Message 7 of 14
(14,118 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
(14,109 Views)
As always u rock mike!!!!!!Robot Mad
0 Kudos
Message 9 of 14
(14,103 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
(14,102 Views)