B
Brad Shook
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.Diagnostics.Process.Start("C:\ca\wb.exe")
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal
' wait until the program is ready for input
myProcess.WaitForInputIdle(1000)
If myProcess.Responding 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("{enter}")
......
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\Analysts
(e-mail address removed)
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.Diagnostics.Process.Start("C:\ca\wb.exe")
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal
' wait until the program is ready for input
myProcess.WaitForInputIdle(1000)
If myProcess.Responding 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("{enter}")
......
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\Analysts
(e-mail address removed)