mpv_thumbnail_script icon indicating copy to clipboard operation
mpv_thumbnail_script copied to clipboard

Most recent version causes MPV.net to lose focus

Open BlepBlep opened this issue 1 year ago • 0 comments

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

  • 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.

BlepBlep avatar Jan 31 '24 09:01 BlepBlep