Need to check VLC for duration of file, and open other file when done

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Marcel_NL
Posts: 3
Joined: 26 Jun 2017, 04:36

Need to check VLC for duration of file, and open other file when done

23 Apr 2018, 09:05

Hi,

I've got a VLC player playing a loop video (loop.mp4) in repeat mode. This can go on and on.
But after certain keypresses (by in this case a visitor) another video's starts, also in repeat mode of course, because the player is..

Now I need to check the length of the other video and if it's at the end, restart the loop.mp4 video.

So far I've got this to check the duration:

Code: Select all

ControlGet, hCtl, Hwnd, , QWidget5, ahk_class QWidget ahk_exe vlc.exe
oAcc := Acc_Get("Object", "4", 0, "ahk_id " hCtl)
duration := oAcc.accChild(3).accName(0)
I can access the elapsed time also, but I can't seem to compare this two..

Hope someone can help me out,
Thnx

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, Google [Bot], Joey5, Nerafius, Rohwedder, Tvlao and 140 guests