|
-
Nov 4th, 2001, 12:12 AM
#1
Thread Starter
Frenzied Member
Monitor another app
How would I be able to monitor another app? For-instance, determine if it is still running or not? I dont really know much about APIs and im pretty stumped.
Any yes, i did search the forums. I wasnt sure what to search for so i didnt find anything.
Thanks,
Nishant
You just proved that sig advertisements work.
-
Nov 4th, 2001, 12:24 AM
#2
PowerPoster
I think, you'll have to install a hook for that app.
I'll try to find some more info about that.
-
Nov 4th, 2001, 12:35 AM
#3
PowerPoster
Well
GETWINDOW something or other API call...
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Nov 4th, 2001, 12:47 AM
#4
Thread Starter
Frenzied Member
Re: Well
Originally posted by James Stanich
GETWINDOW something or other API call...
It would seem that function is for MDI children and parents.
You just proved that sig advertisements work.
-
Nov 4th, 2001, 12:48 AM
#5
PowerPoster
Well
That may not be it, I'll search...
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Nov 4th, 2001, 12:50 AM
#6
PowerPoster
Well
Here the API:
Option Explicit
Private 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
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Nov 4th, 2001, 01:01 AM
#7
Re: Monitor another app
Originally posted by nishantp
How would I be able to monitor another app? For-instance, determine if it is still running or not? I dont really know much about APIs and im pretty stumped.
Any yes, i did search the forums. I wasnt sure what to search for so i didnt find anything.
Thanks,
Nishant
Is the app that you want to monitor has title? If it has, try FindWindow or FindWindowEx to get it handle to determine the app run or not.
PHP Code:
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public 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
-
Nov 4th, 2001, 01:01 AM
#8
Thread Starter
Frenzied Member
That should work. Thanks a lot James.
You just proved that sig advertisements work.
-
Nov 4th, 2001, 01:03 AM
#9
Thread Starter
Frenzied Member
Thanks AngleFire also.
You just proved that sig advertisements work.
-
Nov 4th, 2001, 01:03 AM
#10
PowerPoster
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Nov 4th, 2001, 06:23 AM
#11
Conquistador
Well
To be technical, that isn't monitoring another app.
You can use that to find the handle of another app, but I suggest you hook it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|