VB and VBA Users Source Code: Re: Test if an application is responding and terminate application
[
Home
|
Contents
|
Search
|
Reply
|
Previous
| Next ]
VB/VBA Source Code
Re: Test if an application is responding and terminate application
By:
Andrew Baker
Email (spam proof):
Email the originator of this post
Date:
Tuesday, January 16, 2001
Hits:
1563
Category:
Windows API
Article:
Some other useful class names to help test other applications are listed below: 'Test if Excel is responding lHwnd = FindWindow("XLMAIN", vbNullString) 'Test if Word is responding lHwnd = FindWindow("OpusApp", vbNullString) 'Test if Windows Explorer is responding lHwnd = FindWindow("ExploreWClass", vbNullString) 'Test if Access is responding lHwnd = FindWindow("OMain", vbNullString) 'Test if PowerPoint is responding lHwnd = FindWindow("PP97FrameClass", vbNullString) 'Test if Outlook is responding lHwnd = FindWindow("rctrl_renwnd32", vbNullString) 'Test if Outlook Express is responding lHwnd = FindWindow("Outlook Express Browser Class", vbNullString) Spy ++ which ships with Visual Studio will help you determine class names for other applications.
Terms and Conditions
Support this site
Download a trial version of the Excel Workbook Rebuilder