Ok here is what I a trying to do. I am trying to emulate an operator having
to do repetitive tasks on a 3rd party program. Here is what I am doing so
far. It works.
Start Code
Dim myProcess As Process = System.Diagnost ics.Process.Sta rt("C:\ca\wb.ex e")
myProcess.Start Info.WindowStyl e = ProcessWindowSt yle.Normal
' wait until the program is ready for input
myProcess.WaitF orInputIdle(100 0)
If myProcess.Respo nding Then
'send shift + tab to program
System.Windows. Forms.SendKeys. SendWait("+{TAB }")
'send user to program
System.Windows. Forms.SendKeys. SendWait("User" )
'send password to program
System.Windows. Forms.SendKeys. SendWait("Pass" )
'send enter key to program
System.Windows. Forms.SendKeys. SendWait("{ente r}")
......
End Code
Now I need to check and see if another dialog box popped up and read the
message from the new screen allowing me to send the appropriate sendkey to
respond. I also need to just be able to read text from the screen. I do not
know how to do this. If anyone knows how I would greatly appreciate any
suggestions, Please feel free to also e-mail me.
Thanks,
Brad Shook
Programmer\Anal ysts
bs****@echd.org