Quote Originally Posted by Jameslat View Post
thanks a lot!
now i have run into another problem.
everytime i press my key (a)
it runs the command like 100 times.
How can i make it only run once per evertime a is pressed?
thanks.
You should be handling WM_KEYDOWN or WM_CHAR messages instead of calling GetKeyState in a loop.