Anyone have some suggestions or code on how I might be able to monitor a seperate programs' process for changes (at any time) in the MainWindowTitle without polling the process.MainWindowTitle and doing a lot of process.Refreshes at the same time?
Part of what I'm trying to do is...
I've written a remote control program that one thing it does is monitor the current playing media file in Zoom Player (a media player application). All I'm trying to do right now is get my program to update what zoom player is currently playing (if loaded) at any given time. So if I stop Zoom player my program will report it has stopped. If Zoom Player loads another media file it will update the name on my program immediately with the current media file.
Currently the only way I know how to tell what file Zoom Player is playing is polling the process and grabbing the MainWindowTitle and parsing out the string.
I put that in a background worker with a loop to update the MainWindowTitle to a Label. Problem is that I have to refresh the process cache which seems to be a little extreme to poll it all the time.
Any suggestions on how I might setup an event to check for any change?
Also curious if there is a way to tell what path/file a process might be reading /writing too at any given moment using vb.net?
(sorry I'm brand spanking new to the whole visual basic programming community, but I'm trying to pick it up fast).
Part of what I'm trying to do is...
I've written a remote control program that one thing it does is monitor the current playing media file in Zoom Player (a media player application). All I'm trying to do right now is get my program to update what zoom player is currently playing (if loaded) at any given time. So if I stop Zoom player my program will report it has stopped. If Zoom Player loads another media file it will update the name on my program immediately with the current media file.
Currently the only way I know how to tell what file Zoom Player is playing is polling the process and grabbing the MainWindowTitle and parsing out the string.
I put that in a background worker with a loop to update the MainWindowTitle to a Label. Problem is that I have to refresh the process cache which seems to be a little extreme to poll it all the time.
Any suggestions on how I might setup an event to check for any change?
Also curious if there is a way to tell what path/file a process might be reading /writing too at any given moment using vb.net?
(sorry I'm brand spanking new to the whole visual basic programming community, but I'm trying to pick it up fast).