/*
* -----
* Screenshot Sender - point_click_capture.js
* -----
* PointClickCapture functions for Screenshot Sender
* -----
*/
var lCursorPos = Interop.Allocate(8);
var lWindowRect = Interop.Allocate(16);
function OnPointClickCaptureEvent_MessageNotification(pPlusWnd, nMessage, wParam, lParam) {
_debug.getfuncname(arguments);
switch (nMessage) {
case _win32._const._WM_MOUSEMOVE:
_win32.GetCursorPos(lCursorPos);
break;
case _win32._const._WM_LBUTTONUP:
_win32.ShowWindow(pPlusWnd.Handle, _win32._const._SW_HIDE);
var hWnd = _win32.GetAncestor(_win32.WindowFromPoint(lCursorPos.ReadDWORD(0), lCursorPos.ReadDWORD(4)), _win32._const._GA_ROOTOWNER);
_win32.SetForegroundWindow(hWnd);
MsgPlus.AddTimer('pcc', 100);
RegisterWindowHooks(pPlusWnd, [
_win32._const._WM_LBUTTONUP,
_win32._const._WM_LBUTTONDBLCLK,
_win32._const._WM_MOUSEMOVE
], false);
break;
}
}