mpv_thumbnail_script
mpv_thumbnail_script copied to clipboard
Most recent version causes MPV.net to lose focus
Description of the bug The script "opens" and closes after opening a video, which causes MPV to lose focus. This does not happen with the previous version of the script (v0.5.2)
To Reproduce Steps to reproduce the behavior:
- Put scripts into scripts folder
- Open video file with MPV.net
- MPV.net opens, but immediately loses focus from script running
Expected behavior In the previous version of the script (v0.5.2), the MPV.net window does not lose focus.
Environment
- OS: Windows 11
- mpv version: MPV.net v6.0.4.0-stable
- mpv_thumbnail_script version: v0.5.3
- other scripts or special config that might be relevant: No other scripts running
Additional context This script doesn't currently work with MPV.net 7.1.0.0 but the same issue happens where the window loses focus. I have noticed that when running just normal MPV it runs the scripts before opening, so it might have something to do with MPV.exe needing to be run after MPVnet.exe is started. Regardless, this issue wasn't present on the previous version of this script with MPV.net, so I think it's worth looking in to. I'm not too code-savvy so I'm not that good at figuring out exactly what's wrong so I apologize for that.