New Trigger Ideas, possibly including Hot Corners

Assuming that macOS has APIs that support this, there should be KM triggers for the following:

  1. Screen Saver starts
  2. Screen Saver ends
  3. Notification Center starts
  4. Notification Center ends
  5. Launchpad starts
  6. Launchpad ends
  7. Mission Control starts
  8. Mission Control ends
  9. Application Windows starts
  10. Application Windows ends
  11. Desktop starts
  12. Desktop ends

If you aren't sure what some of those items mean they are listed in the System Settings for Hot Corners.

I was looking into this because I wanted "Hot Corners" to trigger a KM macro, but there doesn't seem to be a way to do that. Perhaps someone here can investigate whether it's possible to trigger an app using the Hot Corners Shortcuts feature of macOS.

If there is no way to trigger a KM macro using Hot Corners, then maybe there could be a new KM trigger in a future update that triggers a KM macro based on which corner the mouse is moved to (or, alternatively, which edge of the screen the mouse is moved to. That would suffice.) This week I've written a macro which polls the value MOUSEX() and executes a macro if MOUSEX()=0, and it's a delightful way to "trigger" a macro. But it would be so much better if I didn't have to poll.

2 Likes

I doubt there are ways to trigger most of those. Maybe Screen Saver starts/stops.

Hot Corner triggers are on the todo list.

2 Likes

Yay. I think many people will like this, once they've tried it. I've been simulating this for a week with a polling macro, and I enjoy it a lot.

Just be aware that there are two features in macOS both called "Hot Corners." One is the feature I listed above, the other is a feature in the Accessibility / Keyboard Preferences pane that is very hard to find. It looks like this: (notice, it has the exact same name)

Oddly enough, these two features, both called Hot Corners, are not mutually exclusive. You can use both methods at the same time, and TWO things will happen when you move the mouse to a corner of the screen.

Very interestingly, if you turn on the Accessibility's Hot Corners feature, you can use KM to click the mouse on the screen (i.e., a right click, left click, or double click) simply by using some method (like a KM action) to move the mouse to a position on the screen. No "click" action is required. I've tried it, and it works. The only downside to this method is that macOS seems to have some code that goes out of its way to avoid clicking the mouse if it thinks the mouse was moved "accidentally." I'm not sure why someone would need to do this feature (or the macOS error-correction feature) other than its intended purpose, which is to help people who are mobility-challenged. But I'm keeping it in my toolkit.

Just one more tip. I'm not sure how Hot Corners work on a multi-monitor configuration when the Display is Extended. It probably prioritizes one of the two "upper left" corners as the real one. I'm not sure if it's the one that's "most upper" or "most left".

1 Like

On my setup, which is two displays side-by-side, it's logically what you'd expect: Upper and lower left corners of the left display, and upper and lower right corners of the right display.

If I had them set up on some sort of diagonal, I have no idea what it would do :).

-rob.

1 Like

The accessibility one also has a cute little display that shows you it is thinking about triggering a hot corner behaviour and you should get out of there if you don't want that to happen.

Hot corners are "can't go any further in x or y, so trigger", so two diagonally-arranged displays do what you might expect -- they have 6 hot corners!

Still only four settings options though, so 2 and 3 have the same functionality as do 5 and 6.

And now I need to reset my layout, before it drives me bonkers!

3 Likes

Such triggers sound tempting. In fact, they can be, especially if you can set a delay time so that they are not triggered unintentionally. And if the "opposite" is also possible, meaning that something is triggered when the mouse leaves the corner.

But to be honest, I stopped using them again. In order not to trigger unintentionally, I had to set the delay so high that it seemed too long when I actually wanted to trigger something. I'm not sure if anyone understands this :joy:

1 Like

hello @Frankb

I had the same problem, which was solved by configuring the hot corner to trigger only when a modifier key is pressed at the same time.

Configuration: In settings, when you select the hot corner from a dropdown list, press the modifier key at the same time.

I used to always trigger the top left corner, and this solved my problem.

Use hot corners on Mac - Apple Atbalsts (LV)

1 Like