Code: Select all
class CursorInfo {
static size := A_PtrSize + 16
Get() {
VarSetCapacity(tagCURSORINFO, this.size, 0)
NumPut(this.size, tagCURSORINFO, 0, "UInt")
DllCall("GetCursorInfo", "Ptr", &tagCURSORINFO)
return NumGet(tagCURSORINFO, 4, "UInt")
}
}
^LButton::
msgbox, % CursorInfo.Get()
return
Code: Select all
global size := A_PtrSize + 16
global tagCURSORINFO := VarSetCapacity(tagCURSORINFO, size, 0)
class CursorInfo {
Get() {
NumPut(size, tagCURSORINFO, 0, "UInt")
DllCall("GetCursorInfo", "Ptr", &tagCURSORINFO)
return NumGet(tagCURSORINFO, 4, "UInt")
}
}
^LButton::
msgbox, % CursorInfo.Get()
return