pyWinContext not running commands
I've recently tried getting into using pyWinContext to setup a script to convert MKV to MP4, But it does not run the commands attached to the action for some reason. I can run the ffmpeg command itself to convert in Powershell and it works. I get the setup.reg in the run folder, And the Group and Action shows up when right clicking.
Does anyone know what I could do to fix this? Or alternate ways todo the same thing?
49 Replies
You could try file converter:
https://github.com/Tichau/FileConverter
or Nilesoft's Shell context menu with some extra work:
https://nilesoft.org/
Not sure if pyWinContext is still actively used or in development, but those solutions are what I am currently using.
Well it's not maintained but it still just works
Can you post the pyWinContext configuration window, and teh script you're using to run FFmpeg?
I thought it quit working for me after a Python update, but that might've just been me
Runs fine for me and I'm on 3.12
I'll have to try it again then
This?
Yep that's it
Can you add a line to that command list that's just the word
pause
Then run the script against a file, and take a screenshot of the console window that appears with the error messageI added it
But nothing happens, like I don't see a console window opening. Not in the task manager either
Also, something I don't know if it's note worthy but when I save the script it doesn't bring me to the run folder but my documents tab. So I have to manually navigate to the run folder to run the .reg
Are you using the latest release from the github page, or did you download the latest source code and run it from there?
The reason I ask is because the latest release didn't include a fix that handled quotes within the command
Ah might be that then, I did download the latest exe(0.1.2) from github
GG @Seid0, you just advanced to level 1 !
I should ask the owner if he'd be cool with me taking over for it, I was the one that submitted that fix 4 years ago, and the original dev is busy being a full-time developer for OBS
TIME TO FORK
Wait so what do I need todo to potentially make it work? Download an older version?
- Go to the github page for pyWinContext
- Click the green button that says
Code
in the top right corner, then click Download ZIP
- Extract that zip to it's own folder
- Double click the launch.pyw
file
That's itThank you! But it does not seem to do anything, No window opens up. I have the latest release of Python but I assume I might need Pillow and cx_Freeze ?
Yep follow the installation guide for it: https://github.com/VodBox/pyWinContext?tab=readme-ov-file#installation
GitHub
GitHub - VodBox/pyWinContext: Manager for Custom Context Menus in W...
Manager for Custom Context Menus in Windows 7 and higher - GitHub - VodBox/pyWinContext: Manager for Custom Context Menus in Windows 7 and higher
Sorry, But now I get another type of error
Just to make sure, you ran
pip3 install pyqt5 pillow pyinstaller
and then ran the launch.pyw
file?Yupp and yupp!
Can you run
launch.pyw
as admin?Right click > "run as admin" ? I don't see that option
Hmmm can you open a cmd window as admin, navigate to the location where you extracted this source code, then type in
launch.pyw
?Yes, It opened the pyContext gui
Perfect
Copy the commands you have from earlier to somewhere like notepad, delete the original action, and create a new one with the command you backed up
Then save it and apply the registry change
Alright, And again nothing. I had a thought tho, could it be that it's because I'm trying to convert OBS recordings? Seems odd that I don't even get the command prompt to open up even with the pause under the command
Hmmm well I do experience that issue you mentioned earlier about trying to save the file and it just opens up the My Documents folder
I did find that the actions get saved to
%APPDATA%\pyWinContext\run
under the Setup.reg
file
Running that file and checking the registry, no action actually gets savedMaybe it doesn't actually save the command/script? (that might be what you just said) But it does change the little menu that opens up when you right click
GG @Seid0, you just advanced to level 2 !
And I can change that, text wise
I tried making a BAT file with those same commands and it also did not correctly write to the registry
The reg file itself seems correct but it's not doing the intended actions
I see! Just so I following, It basically doesn't apply an executable command to the "Action" ?
in the registry
Right, this is what the registry looks like after applying the reg file
It's missing the actual command
Not sure why but yeah seems like it's broken atm for me on Win11
I'll check what it looks like for me
I'm on w10
opp I didn't go far enough
This is as far as I can see
So it seems to work better in Win10 but not 11
Can you navigate to
%APPDATA%\pyWinContext\run
and double slick the Setup.reg
fileI tried the direct editing option instead, and now I get this
Yes
Does the context menu action run after you ran the
Setup.reg
file?No, nothing still happens if I try on a .mkv file
I don't see a console or anything even flicker on screen
I went back an ran the "remove.reg" and went back into pyWin direct editor and saved. Now I get a different error code
GG @Seid0, you just advanced to level 3 !