You can just call the function twice, directly after each other although they wont be simulated at the same time because they have to be injected into the input stream and handled by the recieving window's procedure. This will of course take some time, but it will still be pretty fast.