Killing a APP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frank R. Jr.

    #1

    Killing a APP

    How Can u Kill a application all ready running with a program made by vb

    --
    Frank R. Jr.


  • arko

    #2
    Re: Killing a APP

    This should do it:

    AppActivate "program", True
    SendKeys "%{F4}", True

    'program' should be the text written in the application titlebar.

    If you started the program yourself from VB you can use the id shell
    returned, like in:

    dim id as long
    id = Shell ("calc.exe")
    appactivate id,True
    sendkeys "%{F4}",Tru e


    Good luck with it.

    Arjen


    "Frank R. Jr." <blahblah@hotma il.com> schreef in bericht
    news:j5yYc.2084 06$Oi.98602@fed 1read04...[color=blue]
    > How Can u Kill a application all ready running with a program made by vb
    >
    > --
    > Frank R. Jr.
    >
    >[/color]


    Comment

    Working...