Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determining Whether an Application is Running

Status
Not open for further replies.

GummowN

Programmer
Jul 26, 2002
157
GB
Is it possible to have a function along the lines of:

Function CheckandOpen(filename as string, activate as true)
If filename is running then
If activate is true then
Make filename active application
End if
Else
Launch application
If activate is true then
Make filename active application
End if
End if
End function

I have tried various methods using shell, getobject...etc but with no success.

Primarily I am looking to activate lotus notes, but the function needs to be flexible.

I did try appactivate(strfilename), but that doesnt work as it needs the name of the application in the appbar - which can change with notes depending on your open database.

This is making me bald!
 
I am certain that there is a beautiful API function that does the job.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top