EliStern 0 Newbie Poster

Hi,

I'm working on a program that reads the keyboard and mouse ports directly (using assembly "in" command), and I want to run some automatic tests on it.
The quastion is - is there a way (using QTP\junit\any other tool or script) to simulate direct events to the system ports? I have tried a few (free, not very well known) tools, and all of these simulated a higher level of typing and mouse events like: mouse jumping to a certain coordinates on screen, keyboard buffer loads with keycodes etc. non of them allowed me to write data to the ports so that the program can read it back and act like a human is using the input device.

Hopefully I'm understood..
Thanks,
EliStern