Change mouse cursor color/shape on button down

Get help with using AutoHotkey and its commands and hotkeys
becritical
Posts: 13
Joined: 23 May 2016, 03:28

Change mouse cursor color/shape on button down

01 Apr 2019, 01:09

I am trying to change cursor color or shape when the function ClickLock, in Windows 10, is activated, which in theory should keep the mouse button status down, so I can detect it with ATH.
I have tried to look into the old forum documentation and threads but I don't understand the code. What I have put together so far but nothing happens.

; Cursor types
IDC_APPSTARTING := 32650

~LButton::
while GetKeyState("LButton", "P")
{
; this is the code to the Dll call, but I am not sure how to integrate it
hCursor:=DllCall("LoadCursor", "UInt", NULL,"Int", IDC_APPSTARTING, "UInt")
DllCall("SetCursor","UInt",hCursor)
}
return

Return to “Ask For Help”

Who is online

Users browsing this forum: Evil-e, Odlanir, SilasDeVis, Wechselbruecke and 77 guests