home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / misc / 3459 < prev    next >
Encoding:
Text File  |  1992-11-16  |  1.2 KB  |  40 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!caen!zaphod.mps.ohio-state.edu!rpi!ncc1701
  3. From: ncc1701@madoka.its.rpi.edu (Mark O. Chadwick)
  4. Subject: Visual Basic Question: How to Kill "foreign" task
  5. Message-ID: <m#w10cc@rpi.edu>
  6. Nntp-Posting-Host: madoka.its.rpi.edu
  7. Reply-To: ncc1701@acm.rpi.edu
  8. Date: Mon, 16 Nov 1992 18:59:27 GMT
  9. Lines: 29
  10.  
  11. Hi,
  12.  
  13. I'm trying to write a program that does the following:
  14.  
  15. Invokes an external program, not related to the one I'm writing
  16. (For example, we'll assume I'm trying to run sol.exe)
  17.  
  18. When certain conditions exist, it terminates that program.
  19.  
  20. The way I do it now is to AppActivate "Solitaire"
  21. then SendKeys "%{F4}" (Alt-F4) to kill it.
  22.  
  23. This works great if the program is still running, but
  24. if the user has exited solitaire before the conditions are
  25. met, some OTHER program gets terminated (sometimes
  26. PGM MGR itself!)
  27.  
  28. Is there some way to use the number VBasic returns
  29. when you Shell the program?
  30. (i.e. something=Shell("C:\win\sol.exe",1) ???
  31.  
  32. HELP!
  33.  
  34. (Please email-I don't do a lot of windows pgming, and
  35. don't have time to peruse this group a lot)  THANKS!
  36.  
  37. -- 
  38. ---
  39. Mark "Emerson" Chadwick -- ncc1701@acm.rpi.edu    chadwickmo@space.laafb.af.mil
  40.