Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IDC_APPSTARTING := 32650
- IDC_ARROW := 32512
- IDC_CROSS := 32515
- IDC_HAND := 32649
- IDC_HELP := 32651
- IDC_IBEAM := 32513
- IDC_NO := 32648
- IDC_SIZEALL := 32646
- IDC_SIZENESW := 32643
- IDC_SIZENS := 32645
- IDC_SIZENWSE := 32642
- IDC_SIZEWE := 32644
- IDC_UPARROW := 32516
- IDC_WAIT := 32514
- BCursor:=DllCall("LoadCursor", "UInt", NULL,"Int", IDC_HAND, "UInt")
- LVCursor:=DllCall("LoadCursor", "UInt", NULL,"Int", IDC_HELP, "UInt")
- OnMessage(0x200,"WM_MOUSEMOVE")
- #include %A_mydocuments%\AHKPlaygroundData\ext.ahk ;this is here since gui needs to load first
- Gui, Show, x%x% y%y% h%h% w%w%, AHK Playground %vmode%
- Return
- WM_MOUSEMOVE(wParam, lParam) {
- global BCursor
- global LVCursor
- MouseGetPos,,,, ctrl
- if (ctrl == "Button1")
- DllCall("SetCursor","UInt",BCursor) ; To set the cursor
- if (ctrl == "Button2")
- DllCall("SetCursor","UInt",BCursor) ; To set the cursor
- if (ctrl == "Button3")
- DllCall("SetCursor","UInt",BCursor) ; To set the cursor
- if (ctrl == "Button4")
- DllCall("SetCursor","UInt",BCursor) ; To set the cursor
- if (ctrl == "Button5")
- DllCall("SetCursor","UInt",BCursor) ; To set the cursor
- if (ctrl == "ListBox1")
- DllCall("SetCursor","UInt",LVCursor) ; To set the cursor
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement