Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- when selecting a file that has its name mentioning it being a certain episode, then hook namechange WinEvent and unhook when such a selection is no longer present. The WinEvent handler would be detecting when the VLC window stops having the video title once the video ends. Then attempt to automatically start the next episode if it exists, either from the same season or the next, but only from the same folder. Idk if they ever have multiple seasons in the same folder. Would also be nice if it could automatically change the selection in the relevant explorer wnd as well, using Run cmd with vlc.exe and the file path as the parameter, don't even need to close VLC first
Advertisement
Comments
-
- ; [the solution below is worse because it also needs to use the VLC video output Automatic to make playlists actually work, because Direct3D9 is still necessary for HDR subtitles and that would then not be possible to use..]
- ; It can be done easier by automatically creating a playlist after either a double-click or the Enter key gets detected, because you can get the file names starting with the selected one, going up to the last episode and using it in the Run command (vlc "file1.mp4" "file2.mp4"). Double-clicks are only used for opening files and the first click of a double-click should always either cause a file to get selected or deselected, which is fine but the Enter key could be used to complete a rename, while a file is selected, which must not trigger the playlist to get created obviously but that requires skipping that while renaming
- try
- {
- focusedClassNN := ControlGetClassNN(ControlGetFocus("A"))
- if (focusedClassNN = "Edit1" || focusedClassNN = "Edit2")
- ToolTip("RENAMING")
- }
-
- I might just be able to see the watch time of the video in the VLC INI, then I can see if that is like 95% of the video time length retrieved from the file info. Then I can show some text on the screen, allowing the user to pause the video or closing it, in order to prevent the next episode from playing
Add Comment
Please, Sign In to add comment
Advertisement