Start another app in back
Is it possible to open another app without losing focus of the current foreground app? I have a program that will open another app and test something on it then close it, and reopen it again and repeat. Can this be all done in the back while i am typing away on another app in the foreground without getting interrupted by the new app opening and changing focus?
i dont want the new app open minimized or anything, just quietly open in the background.
I tried using process startinfo.windowstyle and that doesnt help much.
Re: Start another app in back
You would want to use the backgroundworker to open the other process away from the ui thread.
Re: Start another app in back
Simple...
vb.net Code:
Shell("C:\Example.exe", AppWinStyle.NormalNoFocus)
Re: Start another app in back
That still seem to come to the front and it gives an error when i try to open a shortcut .lnk file
Re: Start another app in back
backgroundworker doesnt have anything to do with openning app as background window without taking focus.
Re: Start another app in back
You must use the .exe file, .ink's dont work and also appwinstyle.minizednofocus might work
Re: Start another app in back
You could always play around with the TopMost property of the form. Something simple would be:
Set TopMost to True, Launch new app, set TopMost to False.
Re: Start another app in back
i need lnk to work thats why i tried process.start
Re: Start another app in back
Hmm
you could try opening the ink file, get the filelocation of that, then use the string in a Shell() command?