I have an application which calls an external process. I would like this process to be open as soon as it is called. i.e. with no user interaction.
This is because I would like to send Keys to it to interact.
I know how crude this is but this is a thrid party application that my boss has promised will open is a specific way.
Dim procSungard As System.Diagnostics.Process = _
New System.Diagnostics.Process()
procSungard.StartInfo.FileName = _
System.Environment.GetFolderPath_
(Environment.SpecialFolder.ProgramFiles)&_
"sungard/sungard.exe"
procSungard.StartInfo.WindowStyle = _
System.Diagnostics.ProcessWindowStyle.Normal
If iCode = 1 Then
procSungard.Start()
System.Threading.Thread.Sleep(100)
System.Windows.Forms.SendKeys.Send("{Tab}")
End If
So I declare the process, get its expected location and set a window style.
Is there any way to give it focus on load?
Spinner