Results 1 to 9 of 9

Thread: Start another app in back

  1. #1

    Thread Starter
    Lively Member zexor's Avatar
    Join Date
    Mar 2010
    Posts
    68

    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.

  2. #2
    Addicted Member
    Join Date
    Nov 2006
    Location
    Minnesota
    Posts
    235

    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.

  3. #3
    Lively Member
    Join Date
    Jan 2009
    Posts
    77

    Re: Start another app in back

    Simple...

    vb.net Code:
    1. Shell("C:\Example.exe", AppWinStyle.NormalNoFocus)
    Need any VB help/

    Just PM me!

  4. #4

    Thread Starter
    Lively Member zexor's Avatar
    Join Date
    Mar 2010
    Posts
    68

    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

  5. #5

    Thread Starter
    Lively Member zexor's Avatar
    Join Date
    Mar 2010
    Posts
    68

    Re: Start another app in back

    backgroundworker doesnt have anything to do with openning app as background window without taking focus.

  6. #6
    Lively Member
    Join Date
    Jan 2009
    Posts
    77

    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!

  7. #7
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    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

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  8. #8

    Thread Starter
    Lively Member zexor's Avatar
    Join Date
    Mar 2010
    Posts
    68

    Re: Start another app in back

    i need lnk to work thats why i tried process.start

  9. #9
    Lively Member
    Join Date
    Jan 2009
    Posts
    77

    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
  •  



Click Here to Expand Forum to Full Width