punkleton

Wii Party U Cursor Sprite

May 3rd, 2026
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Autohotkey 1.03 KB | Source Code | 0 0
  1. Global LinkPath := "[File path to linkclick.cur]"
  2. Global MovePath := "[File path to moveclick.cur]"
  3.  
  4. #NoEnv
  5. SetBatchLines, -1
  6.  
  7. ~LButton::
  8. ~RButton::
  9. ~MButton::
  10.     CurrentCursor := GetCursorHandle()
  11.    
  12.     if (CurrentCursor = 32649) {
  13.         h := DllCall("LoadCursorFromFile", "Str", LinkPath)
  14.         DllCall("SetSystemCursor", "Ptr", h, "Int", 32649)
  15.     }
  16.     else if (CurrentCursor = 32646) {
  17.         h := DllCall("LoadCursorFromFile", "Str", MovePath)
  18.         DllCall("SetSystemCursor", "Ptr", h, "Int", 32646)
  19.     }
  20. return
  21.  
  22. ~LButton Up::
  23. ~RButton Up::
  24. ~MButton Up::
  25.     DllCall("SystemParametersInfo", "UInt", 0x57, "UInt", 0, "Ptr", 0, "UInt", 0)
  26. return
  27.  
  28. GetCursorHandle() {
  29.     VarSetCapacity(ci, 16 + A_PtrSize, 0)
  30.     NumPut(16 + A_PtrSize, ci)
  31.     DllCall("GetCursorInfo", "Ptr", &ci)
  32.     hCursor := NumGet(ci, 8)
  33.    
  34.     if (hCursor = DllCall("LoadCursor", "Ptr", 0, "Int", 32649))
  35.         return 32649
  36.     if (hCursor = DllCall("LoadCursor", "Ptr", 0, "Int", 32646))
  37.         return 32646
  38.     return 0
  39. }
Advertisement
Add Comment
Please, Sign In to add comment