The function is useful when you run a auto-play demo.
eg. when you enter old doom game and leave it there,
after a while, it will play automatically.
I fail to see how this relies on writing virtual keypresses to the keyboard buffer. The doom demo started after a certain period of time ... it's that simple.
I can see the relevance of using this DLL in Jfk's example above as you can not do this without an external library. However, for your usage I have to agree completely with Jams.
Now you want to have that same response without a keypress.... so just call the function!
Stevie