Sign in to follow this  
Followers 0
CyberSlug

Mousesetcursor

2 posts in this topic

I've looked at a way to change the mouse cursor, but have had limited success.

SetCursor does not work, but SetSystemCursor does.... To change the normal arrow to cross-hair, call

SetSystemCursor(LoadCursor(0, IDC_CROSS), 32512);

Calling this function again will revert the cursor to normal.

BUT this seems like quite a hack and could be bad if a custom cursor is loaded and the user forcably kills AutoIt. (To get your normal cursor back you simply need to open the mouse control panel applet and re-apply your mouse scheme .)

Some helpful sites:

http://www.mangovision.com/vbapi/ref/s/setsystemcursor.html

http://msdn.microsoft.com/library/default....ces/Cursors.asp

Anyone care to tackle this problem? I'd settle for something that only works on AutoIt-Gui windows.


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites



SetCursor should work for a GUI. I definitely do not want to see something that will force people to go into the Control Panel to fix their cursors, though. It pisses me off when I have a program which changes my cursor and doesn't restore it (I use themed cursors). I can even mess it with AutoIt through Send, sometimes (Bug, I'm sure, but no clue what it is).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0