简体   繁体   中英

How to set a really big Windows 10 mouse cursor?

I have windows application (child's game built with Unity) that I want to set a custom cursor for - I only have the binary for the application, it's not my code. The application runs full screen and appears to use the windows cursor, the cursor is too small to be easily seen by children.

I would like to create a much bigger custom mouse cursor from a png and use that in the game. (much bigger than even the windows accessibility cursors)

So far I have tried:

  1. Using the windows 10 control panel to set the cursor for the whole OS to be a 160x160px ico file. Windows then shrinks the image down to a much smaller size (64x64?).

  2. Writing a windows forms app in C# that uses my PNG as a custom cursor using code like:

     IntPtr ptr = myPng.GetHicon(); myCursor = new Cursor(ptr); this.Cursor = myCursor; 

This partially works: the cursor is as big as I want, but it only changes the cursor for my application, not the OS. (this is the expected behaviour of these functions).

  1. Using SetSystemCursor from user32.dll in my C# app to set the system wide cursor to the one built from my PNG as in 2. This changes the system wide cursor but is back to being shrunk down by windows to a small size as in 1 with the ico.

So, is what I want to do possible? What approach have I missed?!

您需要使用第三方工具,例如MouseChanger,该工具可从sourceforge免费获得

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM