I’d like to write a script that temporarily changes the mouse cursor icon to various other embedded cursors under certain contexts or locations. (Ultimately I'd like to use these scripts in custom actions to create "tool" modes--e.g. using the handscroll icon as the cursor for a "move" tool, or other icons for trim and selector tools.)
I’m still learning the very basics of scripting and hoping someone farther along the path can help and/or direct me to
I've attempted to use code from this page:
https://forum.cockos.com/showthread.php?t=183251
Code:
reaper.Mouse_SetCursor(reaper.Mouse_LoadCursor(191)) -- Loads REAPER's native "key signature" cursor
This changes the mouse momentarily after the script is run but immediately reverts as soon as the mouse moves...
I've read this page, too:
https://www.reaper.fm/sdk/cursors/cursors.php
But the icon numbers listed here don't seem to work at all with the above code.
Ideally I'd like to just make a small script that would work as one step along with other actions to make various custom tools which also change cursor icons. Any guidance is appreciated!