Sorry if this is a newbie question. It seems setting the status of Messages is tricky, since I’d need to know the screen location of that menu. Any tips to programmatically access that menu?
You can use the Select or Show a Menu option.
Click Menu form the drop down and choose which Status you would like to toggle.
Do you mean a status menu item? I don’t see one for Messages, but I also don’t see any way to say “Away”, so I am a bit confused.
But if you mean status menu selection, selecting status menu items is difficult primarily because there is no easy way of specifying them - they don’t have names so its hard to identify them.
You can use a Click at Found Image, although even that can be difficult as they often animate or change icons based on various states. If the icon does not animate or change state (or has a known state when you want to select from it), then this can be a good solution, followed by Insert Text by Typing “Menu Name%Return%”
To click relative to an image, you use the Mouse Click action, configure it to be relative to a found image, and take a screenshot of the desired area of the screen using Command-Control-Shift-4, and paste it into the image well on the action. The image has to be unique (which includes not being visible in the action if the image is small enough not to be shrunk in the image well) otherwise Keyboard Maestro will not know where to click. The Display option in the action will allow you to see where Keyboard Maestro is matching.
I have looked into it on multiple occasions, and will no doubt look in to it again, but its a difficult problem.
That worked, thanks!
Sara’s solution worked!
Awesome! Was going to put up some more screenshots of the steps but I am slammed at work.
I also forgot to mention the screenshot is of my custom status messages. So it might be a little different per user.
Will post some screenshots soon.