LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to move mouse cursor

Hello
does anybody know how to move the mosecursor with lab view code. If anybody
have some vi's that take care of this I would be most grateful

Regards
Stian Langeland
0 Kudos
Message 1 of 3
(3,584 Views)
Stian Langeland wrote:

> Hello
> does anybody know how to move the mosecursor with lab view code. If anybody
> have some vi's that take care of this I would be most grateful
>
> Regards
> Stian Langeland

I think there is no "native" labview solution to your problem.
It depends on the platform you are working on. If you use Win32 i'd suggest (if
you really need to move the mouse cursor programmatically... do you?) to call
some Win32 api function like MOUSE_EVENT or SEND_INPUT on WinNT. Look them up
in M$ documentation. To call them use from the Functions Palette -> Advanced
-> Call Library Function.
Hope this helps.
--
Wolf-Dieter Wall
0 Kudos
Message 2 of 3
(3,584 Views)
For the Win32 case, there's an example available that does this very thing:

http://digital.ni.com/explprog.nsf/websearch/c33e65e20b23f3e4862565ec004d67ec

I searched the National Instruments Example Programs Database
(http://www.ni.com/support/epd/) for "mouse" in order to turn this up.

Regards,
John Lum
National Instruments

> > Hello
> > does anybody know how to move the mosecursor with lab view code. If anybody
> > have some vi's that take care of this I would be most grateful
> >
> > Regards
> > Stian Langeland
>
> I think there is no "native" labview solution to your problem.
> It depends on the platform you are working on. If you use Win32 i'd suggest (if
> you really need to move the mouse cursor programmatically... do you?) to call
> some Win32 api func
tion like MOUSE_EVENT or SEND_INPUT on WinNT. Look them up
> in M$ documentation. To call them use from the Functions Palette -> Advanced
> -> Call Library Function.
> Hope this helps.
> --
> Wolf-Dieter Wall
0 Kudos
Message 3 of 3
(3,584 Views)