checking for app's

rettnuc
10-15-2003, 02:33 AM
How to write code to continuously check IF a program is running?
I want to do an action in MY program, when e.g. Microsoft Word is launched by the user of that computer.

Uplink2069
10-15-2003, 03:27 AM
i think it might work if you use the findwindow api and looped, searching for the caption then checking to see if it find the window you want. i think word has to default startup caption of 'Microsoft Word'.
check out:
http://www.mentalis.org/apilist/FindWindow.shtml
or
http://www.mentalis.org/apilist/FindWindowEx.shtml

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum