How to current time position (elapsed time) with the milliseconds part?

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
omareg94
New Cone
New Cone
Posts: 4
Joined: 21 Mar 2017 19:18

How to current time position (elapsed time) with the milliseconds part?

Postby omareg94 » 21 Mar 2017 20:54

Briefly described question:
How could I show the current video time position (elapsed time) with milliseconds part?
Reading to this line only is sufficient (if you don't have time to read the further details mentioned below) in order to understand what I'm aiming to get and contribute something that may help.


Detailed Question:
I need to get the current video time position (elapsed time) with the milliseconds part. This will help me get this time value with a scripting tool called AutoHotkey. On AutoHotkey, I'm already able to get the current time position by reading the text on the elapsed time section (http://imgur.com/a/opS7f) via Acc_Get function (in AutoHotkey) (but unfortunately, it reads only the time without the milliseconds portion):

Code: Select all

position := Acc_Get("Name","4.3.3.1",0, "ahk_exe vlc.exe")
Simplified example for Acc_Get usage is available here.

I only can get something like 01:23, 01:23:23, ... I need to get the milliseconds part, something like 01:23,128, 01:23:23,762, ...

Thought to be solutions: (but I still don't know how or if they are possible to implement)
■ One of the solutions is to have a setting in VLC player to show the current time position with the milliseconds part in the elapsed time section (to be easily captured then by Acc_Get()).
■ Another solution, is to have something like CMD command that asks VLC player about the current elapsed time value, and VLC outputs it.

Another question on AutoHotkey forums for the same purpose is here.

The purpose behind what I need: I'm building an AutoHotkey script to get the current subtitles appearing within the video (I have another question on that, that I almost found solution for and building it currently); first by getting the current exact time (which must be accurate: should include the milliseconds portion), then getting the single subtitles statement that belongs to that exact time position from the subtitles .SRT file (I don't prefer to use OCR solution as it's neither accurate nor time-friendly). If I don't get the exact time position without the milliseconds portion, and if I have two separate subtitles statements that belong to a single second, I won't be able to decide which subtitles statement to pick (as the currently appearing on VLC player) except I know exactly which millisecond of that second the video is standing at.

Thanks in advance!



Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 71 guests