S
Shinya
I am trying to hook keyboard and mouse input event using
SetWindowsHookEx to check word.ActiveDocument.saved flag
to know if word document has been modified in my office com addin
inside of IDTExtensibility2_OnConnection, i am calling the function like the
following
m_hDllmseHook = SetWindowsHookEx WH_MOUSE_LL, AddressOf MouseProc,
App.hInstance, 0&)
however, mouse move gets too slow when checking saved flag
Public Function MouseProc(ByVal uCode As Long, ByVal wParam As Long, ByVal
lParam As Long) As Long
If uCode = HC_ACTION Then
If wParam = WM_LBUTTONDOWN Then
CheckStatus 'check word.activedocument.saved flag here
End If
End If
MouseProc = CallNextHookEx(m_hDllmseHook, uCode, wParam, lParam)
End Function
is there something I can do about this?
Shinya
SetWindowsHookEx to check word.ActiveDocument.saved flag
to know if word document has been modified in my office com addin
inside of IDTExtensibility2_OnConnection, i am calling the function like the
following
m_hDllmseHook = SetWindowsHookEx WH_MOUSE_LL, AddressOf MouseProc,
App.hInstance, 0&)
however, mouse move gets too slow when checking saved flag
Public Function MouseProc(ByVal uCode As Long, ByVal wParam As Long, ByVal
lParam As Long) As Long
If uCode = HC_ACTION Then
If wParam = WM_LBUTTONDOWN Then
CheckStatus 'check word.activedocument.saved flag here
End If
End If
MouseProc = CallNextHookEx(m_hDllmseHook, uCode, wParam, lParam)
End Function
is there something I can do about this?
Shinya