views:

31

answers:

1

I have to get the information about the current mouse cursor from windows but I'm not managing to work this command...

what should I do? Can someone post one example?

+2  A: 

What information are you trying to get out of the GetCursorInfo() call? It would be easier to use the win32 extensions (especially if you just want cursor position).

>>> import win32gui
>>> win32gui.GetCursorInfo()
(1, 65555, (717, 412))
Mark
I'm trying to get information about the cursor, the type of it... for example, the normal cursor and the cursor for link (the little hand)edit: it worked... the 65555 number is from the type of the cursor... thx
Shady
win32gui.GetCursorInfo()[1] is the handle to the cursor
leoluk