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
Derek 🐢 "Turtle" Roe
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.
HunterAP
HunterAP11mo ago
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?
Derek 🐢 "Turtle" Roe
I thought it quit working for me after a Python update, but that might've just been me
HunterAP
HunterAP11mo ago
Runs fine for me and I'm on 3.12
Derek 🐢 "Turtle" Roe
I'll have to try it again then
Seid0
Seid0OP11mo ago
This?
No description
HunterAP
HunterAP11mo ago
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 message
Seid0
Seid0OP11mo ago
No description
Seid0
Seid0OP11mo ago
I 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
HunterAP
HunterAP11mo ago
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
Seid0
Seid0OP11mo ago
Ah might be that then, I did download the latest exe(0.1.2) from github
MEE6
MEE611mo ago
GG @Seid0, you just advanced to level 1 !
HunterAP
HunterAP11mo ago
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
gregandcin
gregandcin11mo ago
TIME TO FORK
Seid0
Seid0OP11mo ago
Wait so what do I need todo to potentially make it work? Download an older version?
HunterAP
HunterAP11mo ago
- 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 it
Seid0
Seid0OP11mo ago
Thank 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 ?
HunterAP
HunterAP11mo ago
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
Seid0
Seid0OP11mo ago
Sorry, But now I get another type of error
No description
HunterAP
HunterAP11mo ago
Just to make sure, you ran pip3 install pyqt5 pillow pyinstaller and then ran the launch.pyw file?
Seid0
Seid0OP11mo ago
Yupp and yupp!
No description
HunterAP
HunterAP11mo ago
Can you run launch.pyw as admin?
Seid0
Seid0OP11mo ago
Right click > "run as admin" ? I don't see that option
HunterAP
HunterAP11mo ago
Hmmm can you open a cmd window as admin, navigate to the location where you extracted this source code, then type in launch.pyw ?
Seid0
Seid0OP11mo ago
Yes, It opened the pyContext gui
HunterAP
HunterAP11mo ago
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
Seid0
Seid0OP11mo ago
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
HunterAP
HunterAP11mo ago
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 saved
Seid0
Seid0OP11mo ago
Maybe 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
MEE6
MEE611mo ago
GG @Seid0, you just advanced to level 2 !
Seid0
Seid0OP11mo ago
No description
Seid0
Seid0OP11mo ago
And I can change that, text wise
HunterAP
HunterAP11mo ago
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
Seid0
Seid0OP11mo ago
I see! Just so I following, It basically doesn't apply an executable command to the "Action" ? in the registry
HunterAP
HunterAP11mo ago
Right, this is what the registry looks like after applying the reg file
No description
HunterAP
HunterAP11mo ago
It's missing the actual command Not sure why but yeah seems like it's broken atm for me on Win11
Seid0
Seid0OP11mo ago
I'll check what it looks like for me I'm on w10
Seid0
Seid0OP11mo ago
No description
Seid0
Seid0OP11mo ago
opp I didn't go far enough
Seid0
Seid0OP11mo ago
No description
Seid0
Seid0OP11mo ago
This is as far as I can see
HunterAP
HunterAP11mo ago
So it seems to work better in Win10 but not 11 Can you navigate to %APPDATA%\pyWinContext\run and double slick the Setup.reg file
Seid0
Seid0OP11mo ago
I tried the direct editing option instead, and now I get this
Seid0
Seid0OP11mo ago
No description
Seid0
Seid0OP11mo ago
Yes
HunterAP
HunterAP11mo ago
Does the context menu action run after you ran the Setup.reg file?
Seid0
Seid0OP11mo ago
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
Seid0
Seid0OP11mo ago
No description
MEE6
MEE611mo ago
GG @Seid0, you just advanced to level 3 !
Want results from more Discord servers?
Add your server