-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Feature: User Defined Menu (Windows Only) #1020
Comments
It breaks compilation on Mac: |
I think I fix it now. |
yep it works now. Thanks |
Thanks! |
sorry i'm not. I'm just a sysadmin |
Hi!
I want to present a new feature I have added to transgui.
Is a User Defined Menu
This menu is added to the Torrent Context Menu:
...and is added to File Context Menu:
The way to configure this new User Menu is with a new section in transgui.ini
This new section is named [UserMenu] and there you have to define 3 parameters for each menu entry (caption, exename and parameters).
You have to number that entries starting at 1, this way
The caption would be the caption display in the menu, the exename is the full path to the program you want to execute and the params would be anything parameter you program need ("%s" is the name of the torrent or file you right clicked and would be the most common param)
If you want to add a divider in the menu add a item with the caption equal to a hyphen
Here a example of the [UserMenu] in my ini what create the menu of the screenshots:
Notes: I made this feature Windows Only (sorry mac & linux users) because is the OS I know and I have no idea how to execute a process with parameters in linux or mac, but if anyone with the knowledge want to adapt, please do it.
I think what the most hard part to port would be the extract of the icon of exename (I use a ShellApi function, ExtractIconEx), but that can be easy eliminated {$ifdef windows} and the menu would be equally functional (although not so pretty) 😄
The text was updated successfully, but these errors were encountered: