Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 time(s) in 356 post(s)
|
System-wide cursors are a major pain to work with! In 0.4.0.0, I added SetMouseCursor to assign a given cursor a new cursor from a .CUR or .ANI file. Code:sp.SetMouseCursor("Arrow", "C:\\Windows\\Cursors\\aero_arrow_xl.cur");
This does not update your Windows setting, so reloading Windows or calling sp.ShowMouseCursor() will reset it to the default. This is also not a simple overlay, you would have to create/use separate cursor files for each of the 14 system cursor types listed below: Arrow, IBeam, WaitCursor, Cross, UpArrow, SizeNWSE, SizeNESW, SizeWE, SizeNS, SizeAll, No, Hand, AppStarting, HelpSee this MSDN article about creating cursors and see how they are a lot more complicated than you would think: https://docs.microsoft.com/en-us/windows/win32/menurc/using-cursorsNow, with some WinAPI calls and C# code, you could probably extract each current cursor's image, add the overlay, save it to a file, then call the new sp.SetMouseCursor - but that would be something which will almost certainly need to written as a plug-in using C# and native WinAPI calls. Creating a set of your own icon files, copying from the existing Windows cursor files and modifying, would probably be a much more productive and simple method. Or just using some of the other existing cursors already in Windows, like maybe the black ones if you normally use white, for example. Calling sp.ShowMouseCursor() is the simplest way to reload all cursors to the default after you've changed them. Edited by user Friday, November 27, 2020 4:15:50 PM(UTC)
| Reason: Not specified
|
1 user thanked Rob for this useful post.
|
|