Results 1 to 5 of 5

Thread: Process Question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2008
    Posts
    113

    Process Question

    I want to make it so when my program gets closed, it automatically closes another program.

    How would I do that?

    Thanks in advance.

  2. #2

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2008
    Posts
    113

    Re: Process Question

    Woah, very fast response!

    Sorry about being so unclear, let me give you an example:

    My program is running, and if it gets closed, then I want AOL Instant Messenger to close with it (aim.exe)

  4. #4
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: Process Question

    You can try this example, its updated from a post I made here.

    If the the titlebar caption of AIM.exe never changes then you should be able to just use the CloseByTitle module, and call the sub,... CloseProgram "aim title text here"

    Note I don't have/use AIM.EXE so I couldn't test this on that specific file.
    Attached Files Attached Files
    Last edited by Edgemeal; Jun 15th, 2008 at 06:33 PM.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Feb 2008
    Posts
    113

    Re: Process Question

    Thanks, this helped alot.

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