I made an anti theft application for my laptop.
If i report it stolen online it'll log on to a website and the IP will be logged.
I want to add a keylogger to it so i can find out more easily who is in possession of my laptop.
When i use the GetAsyncKeystate
and the for i 32 to 128
if getasynckeystate(i) = -some number
then store chr(i)

my application just gets stuck.
Is there a better alternative for this?
Thanks