How to hide mouse cursor?

Here's a simple solution from the great AHK forums. https://autohotkey.com/boards/viewtopic.php?p=36693#p36693

detectHiddenWindows, On
gui +hwndgHwnd
gui,show,hide w1 h1
winset,transparent,1,ahk_id %gHwnd%
gui +alwaysOnTop +toolWindow -caption +0x80000000
return

ScrollLock::
while(a_timeidlephysical>300000) ; 5-minutes
    sleep 100
tog:=!tog
if(tog){
    blockinput,mousemove
    dllcall("ShowCursor","uint",0)
    mousegetpos,mx,my,active
    gui +Owner%active%
    gui,show,x%mx% y%my% noactivate
} else {
    blockinput,mousemoveoff
    gui,cancel
    dllcall("ShowCursor","uint",1)
}
return

Search here for any AHK resources. Of course, i recommend you learn the language further. :)