question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows context menu handler

See original GitHub issue

Currently I’m working on a context menu handler for Windows Explorer. I wrote it in Delphi and was able to port it to Lazarus/FPC. It runs fine.

Installation of the handler is done via regsvr32 "<path-to-DLL-file>" and requires admin rights. The handler needs the path to CudaText in order to be able to run it. Currently I place the DLL file in the same directory like CudaText, thus I’m able to retrieve Cud’s path by retrieving the DLL path and adding CudaText.exe.

What is your opinion about storage path of the DLL? What do you think is the best way of integrating the handler’s installation into CudaText?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:25 (25 by maintainers)

github_iconTop GitHub Comments

2reactions
dinkumoilcommented, Dec 4, 2019

@vhanla

With a context menu entry based on simple registry keys it is not possible to open more than 15 files. If you select more than 15 files in an Explorer window, the context menu entry disappears.

Moreover, with a context menu entry based on simple registry keys Explorer starts an instance of CudaText for every selected file. My context menu extension starts only one instance of CudaText for every packet of 125 files. Thus, startup speed increases significantly.

1reaction
Alexey-Tcommented, Dec 7, 2019

Ok, I am closing this, DLLs will be in next Cud release

Read more comments on GitHub >

github_iconTop Results From Across the Web

Shortcut (Context) Menus and Shortcut Menu Handlers
This section discusses the creation of shortcut (context) menus, and the implementation of shortcut menu (verb) handlers.
Read more >
How to edit the Windows 10 context menu - TechRadar
Press the Windows key and R simultaneously, type regedit and press Enter. Navigate to HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers and you ...
Read more >
How to Clean Up Your Messy Windows Context Menu
We're going to show you how you can remove items by editing your Registry, as well as an easier cleanup method using a...
Read more >
Add, Remove Context Menu items in Windows 11
The Right Click Menu or the Context Menu is the menu, which appears when you right-click on the desktop or a file or...
Read more >
How to Customize the Windows 10 Context Menu - TechSpot
You can also add and remove items from context menus from the Windows Registry, though it isn't as easy or reliable as using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found