How I detect if neede application is running? 
Author Message
 How I detect if neede application is running?

Lets' say I need to detect when some app starts
i e  if Solitaire starts I wanna be noticed about it in a msgbox!
Thanks
Diman


Thu, 15 Feb 2001 03:00:00 GMT  
 How I detect if neede application is running?
I just recently used a win32 API called FindWindow to detect if an
application has stopped running. You could use the same but to find when an
application starts. You can modify this code if you wish

*** Code to check if RSLINX has been started***

Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" _
 (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal
lpsz2 As String) As Long

Public Function Check_App_Open()
Dim APP_NAME As String
APP_NAME = "RSLINX"

    If FindWindowEx(0, 0, vbNullString, APP_NAME) Then
        msgbox APP_NAME & " has started"    End If
End Function

Hope this helps!!

David

Quote:

>Lets' say I need to detect when some app starts
>i e  if Solitaire starts I wanna be noticed about it in a msgbox!
>Thanks
>Diman



Thu, 15 Feb 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How I detect if neede application is running?

2. How to detect if the application is running?

3. How to detect windows NT running application

4. How do I detect Word 95 running with VB3 application

5. Detecting running of application

6. New to VB Detecting another application running

7. Help Detecting Running Applications

8. how to detect which application running on the Windows NT

9. Detecting whether another application is running

10. Detecting a Running Application

11. detect running application

12. How to detect an application running.

 

 
Powered by phpBB® Forum Software