C++ 使用C/C+读取键盘事件(Windows 7)+;
我从键盘记录者那里看到了这样的例子:C++ 使用C/C+读取键盘事件(Windows 7)+;,c++,windows,device,keyboard-events,keylogger,C++,Windows,Device,Keyboard Events,Keylogger,我从键盘记录者那里看到了这样的例子: for (int i = 8; i < 191; i++) { if (GetAsyncKeyState(i) & 1 == 1) { cout << i << endl; } } for(int i=8;i
for (int i = 8; i < 191; i++) {
if (GetAsyncKeyState(i) & 1 == 1) {
cout << i << endl;
}
}
for(int i=8;i<191;i++){
if(GetAsyncKeyState(i)&1==1){
库特