Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Monitoring External program Started

Status
Not open for further replies.

KeithFrench

Programmer
Jul 20, 2001
25
0
0
GB
I use Visual Basic Express 2005 and I need to check that an external app (cmd prompt) is running before using sendkeys to pass data to it. I have tried using:-

myProcess.WaitForInputIdle()

but if I check this with:-


Dim returnValue As Boolean

returnValue = myProcess.WaitForInputIdle

returnvalue is always false, which can be apparently caused by no message loop.

Am I doing this wrong, or is there another way?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top