Auto-hide mouse cursor during gameplay
Posted: 30 Jan 2020, 13:56
Need For Speed: World needs the cursor at times, but would like it to vanish when mouse ball is no longer in use... say a second or so. When the mouse ball moves, I would like the cursor to re-appear to use again. I found the following script, but unable to adapt it for my needs:
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=69555&p=299768&hilit=hide+cursor#p299768
The following is one variation that seemed to make sense, but didn't work:
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=69555&p=299768&hilit=hide+cursor#p299768
The following is one variation that seemed to make sense, but didn't work:
Code: Select all
SystemCursor(OnOff=1)
{
if (OnOff == 1)
{
BlockInput MouseMoveOff
DllCall("ShowCursor", Int,1)
}
else
{
MouseGetPos, , , hwnd
Gui Cursor:+Owner%hwnd%
BlockInput MouseMove
DllCall("ShowCursor", Int,0)
}
}