https://www.youtube.com/watch?v=2ds2p3mJtXc
-
Автор темы
- #1
C++:
if (GetAsyncKeyState(VK_MBUTTON) && (val.flag & (1 << 0)))
{
INPUT space = { 0 };
space.type = INPUT_KEYBOARD;
space.ki.wVk = VK_SPACE;
SendInput(1, &space, sizeof(INPUT)); // Send KeyDown
space.ki.dwFlags = KEYEVENTF_KEYUP;
Sleep(10);
SendInput(1, &space, sizeof(INPUT)); // Send KeyUp
}