Check if another application has been closed

I use VB4 32bit apps with Windows 95.
From with-in my VB4 application, i need to know when another application (NetScape) has been closed.
Note. I also start NetScape from with-in my application with
Shell.

Capture the variable which contains the reference to the shell function (e.g : Retval=shell(....), Retval is the referenced variavle), and use it with the Activate function, ti activate the application

Capture the variable which contains the reference to the shell function (e.g : Retval=shell(....), Retval is the referenced variavle), and use it with the Activate function, ti activate the application window. if the application is still alive then everything is OK. But if the application is not running any more, this operation will make an error. Trap this error and you will now that your application is closed.

Hi CIMIR
Good Idea but......
Thank for the answer, I have tried it with a delay, but each time i do AppActivate this interupts the application. The application that i wish to monitor is NetScape so each time an Activate occures it interupts what i'm doing with-in Netscape.

0

Featured Post

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…

As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…

Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…