Results 1 to 6 of 6

Thread: Urgent Question

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263

    Post

    What kind of window is opened? There are two ways I thought of going about doing this...

    If the application started is something with an actual interface window and doesn't just work in the background, use the GetForegroundWindow API to get its handle... or branching from that, you could use one of the examples in vb-world's topic areas do retrieve a list of available window before and after the application is run, and then after. Compare the two and you'll get the window of the application. Last but not least, it just made me think of an AppActivate statement in the VB4 help file... see if you can mutilate it for your purposes.

    Code:
    ' AppActivate can also use the return value of the Shell function.
    MyAppID = Shell("C:\WORD\WINWORD.EXE", 1)	' Run Microsoft Word.
    AppActivate MyAppID	' Activate Microsoft 
    	' Word.

  2. #2
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    It is not a window that is running, just a process. I did not execute it, Windows did. I know nothing about it, just the path it was executed from.

  3. #3
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    HELP!

    ------------------
    Tom Young, 14 Year Old
    tyoung@stny.rr.com
    ICQ: 15743470
    AIM: TomY10
    PERL, JavaScript and VB Programmer

  4. #4
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    I need to terminate (kill) an application running that was started under RunService in the registry. I have no idea what the class, hWnd, or caption is. I do however know the path in which it was started from. Can this be done? Thanx.

    ------------------
    Tom Young, 14 Year Old
    tyoung@stny.rr.com
    ICQ: 15743470
    AIM: TomY10
    PERL, JavaScript and VB Programmer

  5. #5
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    Got it... thanx LM Ginn!

  6. #6
    Junior Member
    Join Date
    Sep 1999
    Posts
    19

    Post

    Check out http://www.thescarms.com there are a couple of apps that will do what you are looking for.



    ------------------
    LM Ginn


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