Visual Basic progress bar interact with another program

Soldato
Joined
2 May 2004
Posts
19,950
Hi,

I've been making myself a video converter to convert anything to WMV using VLC Media Player.

Basically I press browse, find my file, click convert and VLC is started with some options to convert the file... nothing too complicated yet.

9L9DJD9O_vlcconverter.png


Basically, I'd really like to make my program interact with VLCs 'play time' within a progress bar.

FbthbTqc_vlctime.png


I guess the best way would be to find VLCs time in seconds (e.g. for the screenshot above it'd be 0/1034)

I'm still fairly new to Visual Basic, go easy on me :p

Any ideas?

Thanks,
Craig.
 
Last edited:
See if VLC exports an API which will provide functions to call to get the info you want. I imagine it does, if it supports plugins.

If not it's messier, but you could do something like finding the window handle of the playing time control and reading its text via Windows API calls.
 
Back
Top Bottom