changing cursors
Posted: 31 Oct 2017, 10:17
hi-
I'm working on a script that helps me populate a text file. I was hoping to have the text select cursor change when the hotkey is active. i.e., change to something obvious or (different cursor) to show that the hotkey is active then when i exit the script, the cursor changes back. thru searching the forums i found a small script that changes the normal select cursor to a different one.
this works fine for the system cursor, but i want to change the text select cursor. does anyone know the parameter for the text select cursor?
thanks
I'm working on a script that helps me populate a text file. I was hoping to have the text select cursor change when the hotkey is active. i.e., change to something obvious or (different cursor) to show that the hotkey is active then when i exit the script, the cursor changes back. thru searching the forums i found a small script that changes the normal select cursor to a different one.
Code: Select all
f1::SetCursor(32646)
f2::RestoreCursor()
SetCursor(cursorId,replaceID=32512)
{
CursorHandle := DllCall( "LoadCursor", Uint,0, Int,cursorId)
DllCall( "SetSystemCursor", Uint, CursorHandle, Int,replaceID)
}
RestoreCursor()
{
DllCall( "SystemParametersInfo", UInt,0x57, UInt,0, UInt,0, UInt,0 )
}
thanks