![]() True that I could have added other mouse events like clicks but since the cursor is hidden I think it too edge case to bother. I have added a mouse check so the cursor only shows again when it is moved. H_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )ĭllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )Ĩ years on and Joseph's answer is still good and works in AHK!īUT I have made it even better. If (OnOff = 0 or OnOff = "Off" or $ = "h" and (OnOff < 0 or OnOff = "Toggle" or OnOff = "T")) H_cursor := DllCall( "LoadCursor", "uint",0, "uint",c%A_Index% ) If (OnOff = "Init" or OnOff = "I" or $ = "") init when requested or at first call ![]() ![]() SystemCursor(OnOff=1) INIT = "I","Init" OFF = 0,"Off" TOGGLE = -1,"T","Toggle" ON = others OnExit, ShowCursor Ensure the cursor is made visible when the script exits. Based on what I found here, I was able to make the following AutoHotkey code: SystemCursor("Init")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |