Results 1 to 3 of 3

Thread: Stopping execution

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

    Post

    Hi

    Does anyone know how to stop execution of another program. For example, can I get my app to stop the user from running Calculator?

    Much appreciated

    Regards,

    ------------------
    - Chris
    chris.kilhams@btinternet.com
    If it ain't broke - don't fix it

  2. #2
    Lively Member
    Join Date
    Nov 1999
    Posts
    64

    Post

    Yes, try this:


    appactivate "Calculator" 'This is what is in the title bar
    sendkeys "{ALT}+{F4}"

    I belive this should work.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

    Post

    Thank you, I shall give it a try. Does this require a timer to constantly check for the existence of Calculator though? Is there not a "cleaner" method, using API I'm sure (API can do everything!)

    Thanks

    Regards,

    ------------------
    - Chris
    chris.kilhams@btinternet.com
    If it ain't broke - don't fix it

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