Keyboard Maestro + Streamdeck + Gmail

I'm thinking of what I would want to use Keyboard Maestro for, and here's the first thing I thought of:

  • I want to quickly apply labels to messages in Gmail. and I want to be able to do it from something that is not my keyboard, like an elgato Stream Deck. Ideally I would want to be able to apply the label, then remove the message from the inbox.

In Gmail, there's no keyboard shortcut for adding a label to a message. I guess that means I'd have to script it?

Then, could I trigger the macro from an elgato Stream Deck? I am imagining this at my left hand and my mouse in my right, and i would be able to slap the button on the Stream Deck and move on to the next message.

Yeah, I think you would have to start with a keystroke ('v' or 'l'), follow that by typing a string unique to your label and follow all of that with a "return" key.

Not exactly robust.