Hi there.
Is it possible for a script to detect the exact word of a subtitle we clicked on?
For example, I paused the video at 10:23, and the subtitles read as "He tucked the body inside his truck". Let's assume I don't know the meaning of the word "tucked". I want to be able to just click on the word "tucked", and the script copies that word to the clipboard.
I can then search it manually if integrating a dictionary to VLC is too much of a hassle.
I was thinking about reading the subtitle file and getting the sentence at the said time (also taking subtitle time corrections into account). I think that would be possible. After that, the script can open a GUI and we can click on the exact word we wanna copy from there. This is my plan B; if directly clicking on the word isn't possible.
Unfortunately, I am very new to VLC scripting, but know some LUA scripting from my experience with Garry's Mod and Computercraft. So if any of you think that you can do this easily, go for it. I will be very grateful.
Such a script would be amazing for people that are trying to learn English (or any other language).