How to open kmtrigger:// in windows?

In Windows on my Mac, I want to open kmtrigger://. After modifying the registry, I was finally able to open the corresponding link with a Mac application, but I found that it didn’t run. Which software should I use to properly execute this URL scheme? And how should I modify the registry?


Then I checked the URL schemes supported by the software in my Mac’s terminal, as shown in Figure 2, and found that kmtrigger does not exist. So, what is it actually executed by?

You are running Windows on your Mac, (using Parallels perhaps?) and you want Windows to be able to trigger a KM macro on your Mac from inside Windows?

That's an interesting idea. It can probably be done using a remote trigger, but that may be the only way. Have you tried using a remote trigger? You need to read this page very carefully:

https://wiki.keyboardmaestro.com/trigger/Remote

That page explains exactly how it is done, so I won't repeat it here.

1 Like

The KM app is for editing macros -- it's the Engine that executes them:

defaults read /Applications/Keyboard\ Maestro.app/Contents/MacOS/Keyboard\ Maestro\ Engine.app/Contents/Info.plist
{
    BuildMachineOSBuild = 22G630;
    -- snip lots of stuff
        UTExportedTypeDeclarations =     (
                {
            UTTypeConformsTo =             (
                "public.text"
            );
            UTTypeDescription = "Keyboard Maestro Trigger File";
            UTTypeIdentifier = "com.stairways.keyboardmaestro.kmtrigger";
            UTTypeTagSpecification =             {
                "public.filename-extension" =                 (
                    kmtrigger
                );
            };
        }
    );
}

Whether you can target the Engine directly like that, rather than going through the usual URL handling process, is another matter.

2 Likes