"Pressing Keys"

I was wondering how to have your program hit keys for you, like it would automatically hit ctrl+c. Or shift+right-arrow, right-arrow, right-arrow.
Hmmm... It depends what OS you are working on...


### Warning: Most likely there's an easier solution ;-) ###

The signal from the keyboard is processed as a so called IRQ (Interrupt Request)...
These are part of the IDT (Interrupt Descriptor Table)...
These are handled by the Operating System... Or in your case the Keyboard Driver...
To trigger such an event, you just have to call the interrupt handler from the according IRQ (Number 1... I think)... This way you could simulate it ^^...





For Windows (The Easier Solution) ;-)
(I'm not at all a big fan of capitalist Microsoft... Just so you know... This hurt a little :-P)
http://msdn.microsoft.com/en-us/library/ms646304(VS.85).aspx
Topic archived. No new replies allowed.