Skip to content
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

[Suggestion] The ability to add custom images to the context menu #17

Open
p-yukusai opened this issue Sep 19, 2021 · 4 comments
Open

Comments

@p-yukusai
Copy link

p-yukusai commented Sep 19, 2021

See title, for reference in how this could be done see here
Thanks for the awesome library by the way!

PD: I've noticed a limitation with the way the shell context works on Windows, since if the path to the selected destination is sufficiently long, it will just ignore the rest of the command, I don't know if this is my own wrongdoing or a limitation with the way Windows runs commands.

@karimawi
Copy link

This would be super useful

@karimawi
Copy link

I think using reg.SetValueEx() to make a key named 'Icon' that has a string value with the path of the .ico or .exe file would work

@p-yukusai
Copy link
Author

It does, and that's what I did in one of my projects, but doing so from an API in the library would be pretty cool!

@rma6
Copy link
Contributor

rma6 commented Feb 14, 2024

I think using reg.SetValueEx() to make a key named 'Icon' that has a string value with the path of the .ico or .exe file would work

I've just pushed a PR with this feature. It works by passing a path to an .ico or .exe file to ContextMenu class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants