Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Under Win 3.1, is 3rd party app running?

Posted on 1998-12-09
3
144 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 30 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

809 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