Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <Windows.h>
- using std::cout;
- using std::endl;
- int main()
- {
- while(!GetAsyncKeyState(VK_F8))
- {
- for(int i=0x01; i<0xFE; i++)
- {
- if(GetAsyncKeyState(i))
- {
- cout << "Key pressed: 0x" << std::setw(2) << std::setfill('0') << std::hex << i << endl;
- }
- Sleep(1);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment