All pastes #634167 Raw Edit

Miscellany

public text v1 · immutable
#634167 ·published 2007-07-26 06:47 UTC
rendered paste body
#include <windows.h>
#include <stdio.h>

int main()
{
	for(;;)
	{
		for(int i = 27; i <= 255; i++) //27 = starting key (filter), 255 = ending key (filter)
		{
			if(GetAsyncKeyState(i))
			{
				system("cls");
				printf("Decimal: %i\nHex: %x\n",i,i);
			}
		}

		Sleep(10);
	}

	return 0;
}