Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to detect clipboard copy
#10
I created a function DrawClipboard triggered on QM file loaded:

Code:
Copy      Help
;\
function# hWnd message wParam lParam
if(hWnd) goto messages

hWnd=CreateWindowEx(0 +32770 0 0 0 0 0 0 0 0 _hinst 0) ;;this hidden window will receive messages
int+ __drawclip_wndproc=SetWindowLong(hWnd GWL_WNDPROC &DrawClipboard) ;;subclass
MessageLoop ;;retrieve messages; run until PostQuitMessage
ret

;messages
sel message
,case WM_DRAWCLIPBOARD
,out "draw clipboard"
;,mac("Process Clipboard")
,
,case WM_CLOSE if(wParam) DestroyWindow(hWnd)
,
,case WM_DESTROY
,PostQuitMessage 0
,
ret CallWindowProc(__drawclip_wndproc hWnd message wParam lParam)

I don't get any output when copying. Is it running? How do I tell? Thanks.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)