Run an external application hidden
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
From my windows.net application I can shell to an external application and run it using sendKeys.Wait keystrokes. … This all works fine but it does it out in the open. When I use AppWinStyle.Hide or ApWinStyle.MinimizedFocus or ApWinStyle.MinimizedNoFocus the application appears when the “ENTER” is execute and again when the “F9” is executed Otherwise it is hidden or minimized. Any Ideas? Thanks GregC Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ProcID = Shell("C:\wincopy\wincopy.exe", AppWinStyle.Hide) AppActivate(ProcID) SendKeys.SendWait("{ENTER}") SendKeys.SendWait("{F9}") End Sub Thanks, GregC