Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Under Win 3.1, is 3rd party app running?

Posted on 1998-12-09
3
Medium Priority
?
149 Views
Last Modified: 2010-05-03
Using VB3.0 under Windows 3.1, I need to be able to check if a 3rd party application is running and either shut it down or send a message to the user that my app can't continue until the 3rd party app has been shut down.

This must be simple, but I've been banging my head against a wall trying to find the answer.

Thanks,

Rob.
0
Comment
Question by:rround
  • 2
3 Comments
 

Author Comment

by:rround
ID: 1449021
Edited text of question
0
 
LVL 4

Accepted Solution

by:
idcanada earned 90 total points
ID: 1449022

I would use the getWindow and FindWindow API call as a boolean.
If true, then promp a message box.

Or once window found, use app.activate window name and sendkeys
(Alt - F4) will close the app.


0
 

Author Comment

by:rround
ID: 1449023
I don't see any documentation in VB3.0 for FindWindow or GetWindow.  Are you sure this is available in this version ov VB?   If so, can you give me an example on how to code it.

Thanks.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question