Access context menu in Chrome

Keyboard Maestro 8.0.4 Actions

Keyboard Maestro Actions.kmactions (5.4 KB)

Original post:

When I tried this on my system, I needed three down arrow keystrokes to reach Copy Image; maybe you do too?

You could also try inserting an If Then Else action after copying the image to ensure that the clipboard contains an image, and to give you an error/stop the macro if it doesn't:

If you want to make extra sure that the clipboard's contents have changed after the copy action before the macro proceeds, you can take advantage of the CLIPBOARDSEED() function to do just that:

If anything is unclear, or you have any further questions, feel free to ask.

Hey Guys,

In general it's a bad idea to use up/down keystrokes to arrive at a menu item.

Numerical ordering in menus is very fragile.

It's always better to use an Insert Text by Typing action to type-select the menu-item if at all possible.

-Chris

3 Likes

Thank you for these suggestions. I’ll try them and provide an update.