Custom HTML Prompt and Instance Variables

Instance Variables work in Custom HTML prompts, but only if you use the GetVariable function, ProcessTokens won’t process an Instance variable token

This works for variable InstanceArtFile:
document.getElementById(‘artwork’).src = window.KeyboardMaestro.GetVariable(‘InstanceArtFile’)

This does not work:
document.getElementById(‘artwork’).src = window.KeyboardMaestro.ProcessTokens(’%Variable%InstanceArtFile%’);

I use the second form if I want to combine an instance variable with some other token data from KM.

Fixed for the next version.

1 Like