deathman5
asked on
Get App Name?
how can I get the name of the window/application oppened?
For example if user oppened WINDOWS EXPLORER. then the application will msgbox
WINDOWS EXPLORER OPENED
or whatever...
how can it be done?
thanks for any help
For example if user oppened WINDOWS EXPLORER. then the application will msgbox
WINDOWS EXPLORER OPENED
or whatever...
how can it be done?
thanks for any help
you could monitor all the windows and when a new one is made you could grab the name from that. but then your using timers.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
i swear ive seen that name somewhere, azrasound.... are you around in DC any?
No, I live in Houston. Perhaps from another forum? Perhaps you listen to house music?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
hehe, i live in ohio, by DC i meant direct connect. this is going to bug me forever now.
But on to the question,
Are you trying to halt execution of certain programs or did you want to just log what programs are being used?
But on to the question,
Are you trying to halt execution of certain programs or did you want to just log what programs are being used?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I am not sure what are you up to:
This example will list all the windows activate at the time
http://www.thescarms.com/VBasic/alttab.asp
If you want to monitor all the windows a user open using this example, my advice is to use a timer (interval = 1000), and record the difference if new program added to the list.
However, if you already have the hwnd, then it is advisable to use the API GetWindowText & GetWindowTextLength
~ fantasy ~
This example will list all the windows activate at the time
http://www.thescarms.com/VBasic/alttab.asp
If you want to monitor all the windows a user open using this example, my advice is to use a timer (interval = 1000), and record the difference if new program added to the list.
However, if you already have the hwnd, then it is advisable to use the API GetWindowText & GetWindowTextLength
~ fantasy ~
ASKER
thx everybody, but Shell Hook Dll was what I wanted :)
But thx 4 anybody how helped
But thx 4 anybody how helped