This code uses the user32 dll to change your mouse icon to anything you like.
You can change the file name to any .cur (normal) or .ani (animated) cursor file. In the code below, I've directed it to the waggy tail cursor in my windows directory, which I'm assuming is probably on most other peoples p.c.'s too.
This cursor, unlike sprite based cursors, will show up over the window title bar and over any BlueGUI gadgets.
It also works without the need to add cursors into the IDE's project file, which some people (including me) have problems with, which is why I ended up having to write this.
Toggle the cursor between new and original styles by pressing the spacebar.
set window on
set window size 640,480
position mouse 100,100
sync on
load dll "user32.dll",1
file$="C:\WINDOWS\Cursors\wagtail.ani"
newcursor=call dll(1,"LoadCursorFromFileA",file$)
oldcursor=call dll (1,"SetCursor",newcursor)
cursor=newcursor
do
call dll 1,"SetCursor",cursor
if spacekey()=1 and keydown=0 and cursor=newcursor then cursor=oldcursor:keydown=1
if spacekey()=1 and keydown=0 and cursor=oldcursor then cursor=newcursor:keydown=1
if spacekey()=0 then keydown=0
sync
loop