I have been useing the keybd_event() function to do things for some programs that I wrote, but when I run my program, the keyboard_event function works perfectly, my program ends - the keyboard is all messed up. if I press a key after the program it doesn't do what it should unless I press the alt button, then it works. (I think the escape key does some window hopping or something);
Is this a standard error?? is there a way to overcome it? I tried using the virtual keyboard to 'press' alt, but it didn't work.
Did you make sure your code unpress the keys when done? Mine did something like that when I forgot to unpress a key in my code.