Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change Mouse Cursor
#2
This macro changes arrow cursor.

Code:
Copy      Help
dll user32 #LoadCursorFromFile $lpFileName
dll user32 #SetSystemCursor hcur id
def OCR_NORMAL       32512
def SPI_SETCURSORS   87

;set custom arrow cursor
int hcur=LoadCursorFromFile("C:\WINDOWS\Cursors\arrow_rl.cur")
if(!hcur) ret ;;file not found
SetSystemCursor(hcur OCR_NORMAL)
;wait 10 s
10
;restore system cursors
SystemParametersInfo SPI_SETCURSORS 0 0 0


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)