There are no error and it seems to flow through the code but the cursor color doesn't change.
Any ideas?
Code: Select all
#Persistent
#SingleInstance Force
SetTimer, ChangeCursor, 100
ChangeCursor:
If GetKeyState("Ctrl", "P") ; Check if Control key is pressed
{
; Change cursor color to blue
DllCall("SystemParametersInfo", UInt, 0x0057, UInt, 0, UInt, 0, UInt, 3)
}
Else
{
; Restore default cursor color
DllCall("SystemParametersInfo", UInt, 0x0057, UInt, 0, UInt, 0, UInt, 0)
}
Return