I'm almost finished with this project, and this forum as been invaluable, but I have what I hope is one final problem before I put the final program together.
I'm trying to open an .exe file (S:\storm.exe) and then, once it's fully open, do some keystrokes. The program will automatically read from some .xls files and input the information (again, via keystrokes) into storm.
My problem is this: I need to have storm full open (which takes between 1-5 seconds) before continuing any of the code. system(); is what I used first but obviously that wouldn't work so I learned how to use ShellExecute, but shell execute required a Sleep(); afterwards to wait till it opened.
This was kinda sloppy (to me at least) so I'm trying to find another way. I tried createprocess followed by a WaitForSingleObject but that waits until storm.exe is closed before continuing (much like system(); did.)