marzzzello / mpv_thumbnail_script

A Lua script to show preview thumbnails in mpv's OSC seekbar, sans external dependencies (fork)
GNU General Public License v3.0
270 stars 20 forks source link

Most recent version causes MPV.net to lose focus #51

Open BlepBlep opened 7 months ago

BlepBlep commented 7 months ago

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:

  1. Put scripts into scripts folder
  2. Open video file with MPV.net
  3. 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

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.