Go Back   Forum Care Forums > Development Reference Area > Visual Basic

Reply
 
LinkBack Thread Tools Display Modes
Killing a APP
Old
  (#1)
Frank R. Jr.
Guest
 
Posts: n/a
Default Killing a APP - 06-04-2007, 09:49 AM

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

--
Frank R. Jr.


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: Killing a APP
Old
  (#2)
arko
Guest
 
Posts: n/a
Default Re: Killing a APP - 06-04-2007, 09:49 AM

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}",True


Good luck with it.

Arjen


"Frank R. Jr." <EMAIL REMOVED> schreef in bericht
news:j5yYc.208406$Oi.98602@fed1read04...
> How Can u Kill a application all ready running with a program made by vb
>
> --
> Frank R. Jr.
>
>



   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top