get keypress

I was trying to write a keylogger. I used the GetAsyncKeyState() function but it doesn't take the writing delay. There is WM_KEYDOWN but now i don't have a window. Is there still a way to keep the delay without creating a window?
Topic archived. No new replies allowed.