-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Screenshot created but not copied to clipboard #13
Comments
This is the command that the script tries to run on Windows:
Can you run it (either in cmd or powershell) and see if there's an error? |
How do I do it properly? Open mpv, copypaste enitre script in powershell? Or line by line? |
Just open powershell and copy paste the whole thing (assuming the file is still there). |
At least translate it… |
|
Does it work if you run it from cmd instead? |
No, cmd can't even recognize those commands. |
I could not reproduce the error in my VM but it should be fixed by 342c256. |
The funny thing is, the fix doesn't work for me... |
Script(s)
clipshot.lua
Description
Image is created in temp folder, but doesn't go to clipboard.
I have Win11x64 22631.3296.
I tried enabling logs and got this, the most relevant line, as I believe, is:
[ 15.820][e][cplayer] Starting subprocess failed: init
Here is full logs:
output.txt
I tried another script at https://github.com/zc62/mpv-scripts/blob/master/screenshot-to-clipboard.js and it does work.
Possible Fix
Steps to Reproduce
Expected result: screenshot can be pasted from clipboard to any app
Actual result: there is no screenshot in clipboard, but file is created in temp folder. Tried changing jpeg to png, same result.
Operating System(s)
MPV version
mpv.net 7.1.1.0 (03.02.2024), mpv v0.37.0-152-gbd5d8e41 (11.01.2024)
Lua version
5.4.4
The text was updated successfully, but these errors were encountered: