LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can CVI call interrupt 33h for display Pointer position in Windows XP?

I have to show the Pointer position on the XP screen without using LW or CVI 's GUI. Is there any way to do that or I have to use interrupt 33h? If in the latter case, how I do that in CVI codes to call interrupt 33h?

 

Thanks for any help

Message Edited by plit string on 02-09-2009 02:34 PM
0 Kudos
Message 1 of 7
(3,874 Views)

Int 33h is an MS-DOS interface and isn't applicable to Windows (not NT-derived Windows, anyway). If you need to avoid the CVI libraries (why?), the Windows API function you need is GetCursorPos(). More information here.

--
Martin
Certified CVI Developer
0 Kudos
Message 2 of 7
(3,852 Views)
Actually, I only want to show the pointer on the Monitor without erasing any thing on it (as the mouse movement), but I do not know how to do it without using CVI GUI. Certainly, I have to provide the coordination (x,y) for it ... do you know how to do it
0 Kudos
Message 3 of 7
(3,842 Views)
Sorry, it's not at all clear to me now what you want to do. Do you want to get the mouse pointer position, set the position, or do something else?
--
Martin
Certified CVI Developer
0 Kudos
Message 4 of 7
(3,819 Views)

Really I would like to show a Pointer moving cross the Monitor screen without erasing any thing on it (the mouse doing the same thing), I will provide the coordination XY coordination. That was why I did not want to use any GUI from CVI.

 

 

0 Kudos
Message 5 of 7
(3,816 Views)
Using the Windows API functions to draw on the screen isn't really a topic for this forum. It is straightforward but rather tedious. You should look at the GDI documentation on MSDN, in particular this section, for more information.
--
Martin
Certified CVI Developer
0 Kudos
Message 6 of 7
(3,799 Views)
Thanks for the link. It is good enough for me Smiley Happy
0 Kudos
Message 7 of 7
(3,796 Views)