Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mouse position triggers
#3
Toolbar hook function
Code:
Copy      Help
;/
function# hWnd message wParam lParam

sel message
,case WM_SETCURSOR
,if(!(wParam=hWnd or GetDlgCtrlID(wParam)=9999)) ret
,sel lParam
,,case WM_LBUTTONUP<<16|HTCLIENT ;;or WM_LBUTTONDOWN
,,POINT p; GetCursorPos &p; ScreenToClient hWnd &p
,,out "%i %i" p.x p.y
,,;now launch macros (mac) depending on coordinates
,,,
,,


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)