-
This should be a fairly easy one, but I don't have any info on Directcc.exe or the relevant Windows API that may be involved. WHat I want to do is have the program load Directcc.exe (which I have done via shell), and automatically "listen" or "talk" dependent on how directcc.exe has been setup on the machine (at the moment all it does is SendKeys "{Enter}" to click on the talk/listen button). Now it needs to wait until a connection is made, and then proceed with the rest of the code (which is working). Your help will be very welcome!
Matt
-
Add a DoEvents after the SendKeys.
-
That doesn't let me know that the connection is present. I need to know that the other computer's connected before the rest of the program runs.
-
A DoEvents will wait until that task processes and completes before moving on to the next part of the code.
-
Yeah, it will wait for it to complete, but this process can complete after either a) Connecting to the other computer or b)Connection timing out. I want to trap for these results, and only process the rest of the instructions after result a) is found.