LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

move cursor to determinate coordinates

I checked the program you attached and found that it is getting an error (the error was so bad on my computer that Windows closed LabVIEW) from the DLL interface node.  When you are using DLLs like user32 and kernel32 and other Windows DLLs, you need to call them in "stdcall (WINAPI)" instead of "C".  That is why LabVIEW says that there is an error.  I attached prmouse.vi with the modification to the settings of the DLL.  (DLLs are very tricky to deal with, I only recently learned how to use them.)
 
About my program algorithm and formula, in the beggining of my program, I basically made a subvi that would take two coordinates and make the in-between steps, but all it basically does is make a line (somewhat like the "Draw Line.vi" does, only my subvi generates the raw coordinates).  Then it takes those coordinates and sets the cursor position based on them.  So the only fancy thing about my program is the subvi that generates the "pixels" for the mouse to move to.
 
I hope that helps!
 
7J1L1M
0 Kudos
Message 11 of 13
(615 Views)
Hi again!!
I´m still moving the mouse, but now, the values of an acquisition move the cursor.
I attach you a program where i acquire from two channels and the program check the values from the acquire signals to increase o decrease the position of the cursor. One channel change the Left value, and the other the Top value.
I´ve tried to execute the program, but an error occurs and I don´t know why.
About the program you sent me I understand how it works yet. Thank you very much, really.

Bye!

0 Kudos
Message 12 of 13
(600 Views)

I checked the block diagram (cute little program by the way, although I don't have DataAcq installed) and couldn't seem to find any errors (at least coming from the cursor thing).  Just to make sure, I tested it, and didn't get an error from the SetCursorPos library.  I'll let you know if I find something different.  By the way, have you tried highlighting the execution to see where the error is coming from?

7J1L1M

0 Kudos
Message 13 of 13
(597 Views)