Code Viewer

./WindowHandlers/PointClickCapture_handler.js File Size: 1.85 KB

  1. /*
  2. * -----
  3. * Screenshot Sender - point_click_capture.js
  4. * -----
  5. * PointClickCapture functions for Screenshot Sender
  6. * -----
  7. */
  8.  
  9. var lCursorPos = Interop.Allocate(8);
  10. var lWindowRect = Interop.Allocate(16);
  11.  
  12. function OnPointClickCaptureEvent_MessageNotification(pPlusWnd, nMessage, wParam, lParam) {
  13.         _debug.getfuncname(arguments);
  14.         switch (nMessage) {
  15.                 case _win32._const._WM_MOUSEMOVE:
  16.                         _win32.GetCursorPos(lCursorPos);
  17.                         break;
  18.                 case _win32._const._WM_LBUTTONUP:
  19.                         _win32.ShowWindow(pPlusWnd.Handle, _win32._const._SW_HIDE);
  20.                         var hWnd = _win32.GetAncestor(_win32.WindowFromPoint(lCursorPos.ReadDWORD(0), lCursorPos.ReadDWORD(4)), _win32._const._GA_ROOTOWNER);
  21.                         _win32.SetForegroundWindow(hWnd);
  22.                         MsgPlus.AddTimer('pcc', 100);
  23.                        
  24.                         RegisterWindowHooks(pPlusWnd, [
  25.                                 _win32._const._WM_LBUTTONUP,
  26.                                 _win32._const._WM_LBUTTONDBLCLK,
  27.                                 _win32._const._WM_MOUSEMOVE
  28.                         ], false);
  29.                         break;
  30.         }
  31. }
  32.  

Version

  • 5.0.0070_20100325_publicbeta1

Developers

Project Details

  • Folders8
  • Files122
  • Total Lines11,867
  • Repository Version70

User Count

  • 162