g_hookData->m_syncKey = sc->m_scan;
g_hookData->m_syncKeyIsExtended = !!(sc->m_flags & ScanCode::E0E1);
m_isSynchronizing = true;
-#if defined(_WINNT)
generateKeyEvent(sync, false, false);
-#elif defined(_WIN95)
- generateKeyEvent(sync, true, false);
-#else
-# error
-#endif
m_cs.release();
DWORD r = WaitForSingleObject(m_eSync, 5000);
mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0);
else if (vkey == VK_RBUTTON && isUp)
mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0);
-#if(_WIN32_WINNT >= 0x0500)
else if (vkey == VK_XBUTTON1 && isDown)
mouse_event(MOUSEEVENTF_XDOWN, 0, 0, XBUTTON1, 0);
else if (vkey == VK_XBUTTON1 && isUp)
mouse_event(MOUSEEVENTF_XDOWN, 0, 0, XBUTTON2, 0);
else if (vkey == VK_XBUTTON2 && isUp)
mouse_event(MOUSEEVENTF_XUP, 0, 0, XBUTTON2, 0);
-#endif /* _WIN32_WINNT >= 0x0500 */
else if (isUp || isDown)
keybd_event(vkey,
static_cast<BYTE>(MapVirtualKey(vkey, 0)),
// set alpha blending parameter to the window
void Engine::funcWindowSetAlpha(FunctionParam *i_param, int i_alpha)
{
-#if defined(_WINNT)
HWND hwnd;
if (!getSuitableWindow(i_param, &hwnd))
return;
RedrawWindow(hwnd, NULL, NULL,
RDW_ERASE | RDW_INVALIDATE | RDW_FRAME | RDW_ALLCHILDREN);
}
-#endif // _WINNT
}
// set IME open status
void Engine::funcSetImeString(FunctionParam *i_param, const StrExprArg &i_data)
{
-#if defined(_WINNT)
if (!i_param->m_isPressed)
return;
if (m_hwndFocus)
//FlushFileBuffers(m_hookPipe);
}
-#else
- Acquire a(&m_log);
- m_log << _T("supported on only Windows NT/2000/XP") << std::endl;
-#endif
}
// Direct SSTP Server