PDA

Click to See Complete Forum and Search --> : Stopping execution


chrisjk
Dec 12th, 1999, 09:30 PM
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 :)

cjwares
Dec 12th, 1999, 10:43 PM
Yes, try this:


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

I belive this should work.

chrisjk
Dec 13th, 1999, 06:55 AM
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 :)