|
-
Sep 21st, 2000, 06:45 AM
#1
Thread Starter
Member
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
VB5 Enterprise, C++Builder 5, JBuilder 3.5 (so far unused  )
-
Sep 21st, 2000, 06:51 AM
#2
Add a DoEvents after the SendKeys.
-
Sep 21st, 2000, 06:56 AM
#3
Thread Starter
Member
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.
VB5 Enterprise, C++Builder 5, JBuilder 3.5 (so far unused  )
-
Sep 21st, 2000, 07:01 AM
#4
A DoEvents will wait until that task processes and completes before moving on to the next part of the code.
-
Sep 21st, 2000, 10:20 AM
#5
Thread Starter
Member
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.
VB5 Enterprise, C++Builder 5, JBuilder 3.5 (so far unused  )
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|