Trigger an action only if chrome tab title contains a given string?

More specifically, when I tap the caps lock key, I would like it to type the Escape key everywhere except in a Chrome tab whose title matches a string, where I would like it to type Ctrl+c instead.

I found that there is something called tokens and there is one named %ChromeTab%, but I don't think these are expanded in scripts in the control flow actions.

Hey Rick,

Where exactly did you find %ChromeTab%?

There is no such token that I'm aware of.

%ChromeURL% on the other hand does exist.

You may want to read up on Tokens user manual section and where they function (text fields).

⠀⠀⠀"1. Tokens (returns text, used in text fields)"

There's a text condition in the If Then Else action, and text tokens do work in that text field.

-Chris

I found it here: token:ChromeTitle [Keyboard Maestro Wiki]. Cool, let me try! Thanks Chris!

That worked! Thank you again!

Check again. There is no such token as %ChromeTab%...

Good deal.