|
-
Apr 5th, 2010, 12:39 PM
#1
Thread Starter
Lively Member
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.
Last edited by zexor; Apr 5th, 2010 at 12:44 PM.
-
Apr 5th, 2010, 12:58 PM
#2
Addicted Member
Re: Start another app in back
You would want to use the backgroundworker to open the other process away from the ui thread.
If someone has helped you, please make sure to rate them. 
-
Apr 5th, 2010, 01:00 PM
#3
Lively Member
Re: Start another app in back
Simple...
vb.net Code:
Shell("C:\Example.exe", AppWinStyle.NormalNoFocus)
Need any VB help/
Just PM me!
-
Apr 5th, 2010, 01:15 PM
#4
Thread Starter
Lively Member
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
-
Apr 5th, 2010, 01:16 PM
#5
Thread Starter
Lively Member
Re: Start another app in back
backgroundworker doesnt have anything to do with openning app as background window without taking focus.
-
Apr 5th, 2010, 01:17 PM
#6
Lively Member
Re: Start another app in back
You must use the .exe file, .ink's dont work and also appwinstyle.minizednofocus might work
Need any VB help/
Just PM me!
-
Apr 5th, 2010, 01:29 PM
#7
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.
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Apr 5th, 2010, 02:00 PM
#8
Thread Starter
Lively Member
Re: Start another app in back
i need lnk to work thats why i tried process.start
-
Apr 5th, 2010, 02:02 PM
#9
Lively Member
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?
Need any VB help/
Just PM me!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|