pro master
C++:
#include <windows.h>
void pressKey(int key)
{
keybd_event(key, 0, 0, 0);
keybd_event(key, 0, KEYEVENTF_KEYUP, 0);
}
bool isKeyHeldDown(int key)
{
return (GetAsyncKeyState(key) & 0x8000) != 0;
}
int main()
{
while (true)
{
if (isKeyHeldDown(0x57))
{
pressKey(VK_CONTROL);
}
Sleep(10);
}
return 0;
}