Solved

Under Win 3.1, is 3rd party app running?

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now