Answer the question
In order to leave comments, you need to log in
Custom handler for the "print" event of the context menu of specific files?
Good afternoon.
What are the ways to register a custom "print" event handler for the context menu of some extensions on modern systems ? Interested in Win2k8, Win2012, win2016, win 7/10.
I tried the old-fashioned way, to get into the
HKCR\.ext\verb\command\@default registry
- for
some reason the path to the program does not work out. (tried on 10ke) The last time I did such nonsense on XP, it worked right away.
I googled the HKCR\SystemFileAssotiations\... section, but when I try to change
HKCR\SystemFileAssotiations\.ext\shell\print\command\@default - the path to the program
, nothing happens either.
I tried to google something specific, how to code such a software, but I did not find a fresh example without MFC.
(you can C++, .NET)
Maybe there is a ready-made software where you can simply select an extension, specify a command (including the standard one - verb in terms of M $) and the path to the program - the "make beautiful" button?
PS: the question is a sub-question of this .
UPD: M$ found a section in the docks https://docs.microsoft.com/ru-ru/windows/win32/she...
But the devil will break his leg there...
UPD2: it looks like here is a tutorial https://www. codeproject.com/Articles/174369/How-to...
But the question is the same, is there really no way without a bicycle?
Answer the question
In order to leave comments, you need to log in
I can’t speak for everything directly, but in most cases, for .ext, the default value is the type name associated with the program (for example, I now have PDF24.Reader for PDF). And in HKCR there is a separate branch with this name, in which there is already a Shell subfolder, Print in it, and Command in it with a default value in the form of a launch string. I suppose it's worth trying this way, and not producing folders directly in HKCR \ .ext
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question