Hi guys, it's been a long time (some years) since I've programmed for the last time (and I've never been quite good at it). But I've just come up with an idea for a program. What I want to do is get the time of a video player, I mean, get the time of a video that is being play by a video player. The goal of this all is to translate videos. This way I can write the subtitles for a video that I'm watching while the program gets the time of the video being play and prints it into the text so I don't have to. (As you can probably see, English is not my native language)

I don't want you guys to write the code for me of course. What I need is some ideas of how can I accomplish this and maybe something to read that helps me get it done.
I'm really sorry for not asking something specific, but as I said, I's been years since I wrote my last program and I'm kinda lost.
Any help will be well received

If you don't understand something because of my awful English, let me know.
Thanks in advance.