Move to X/Y not always working

Not sure what I'm doing wrong. I have 8 desktops on 2 displays (4 each). I have keyboard shortcuts defined to switch between them. ^1...^4 switches between desktops on the left monitor. CMD-1...CMD-4 switches on the right monitor. And ^CMD-1...4 does both at the same time.

The ^ and CMD use Move to X/Y to move the mouse. Only the CMD version works, though.

^1 does Switch to Desktop 1, then Move to, then Activate/Bring to Font Window Under Cursor.
CMD-1 does the same, but for Desktop 5. The mouse is moved when I use CMD-1 but not ^1. In the config, they look the same, except for the Desktop.

For ^1 it's like the Move to is completely ignored.

I can upload my config, if that would help, but I don't know if that's a good idea or not.

I'm on 4.372. This problem started a long time ago and I believe it did work for a good while.

No ideas on this?

@Andreas_Hegenberg can you at least confirm that my expectations of behavior are correct? Do you need further information from me to determine that? As I said, this used to work perfectly and I don't think I changed anything, of course except upgrading macOS. I worry that the behavior I'm seeing is due to restrictions in what macOS allows.

Thank you.

In general that should work fine. Have you tried adding some (async) delay action before the mouse move? Possibly also try re-recording the action, could be something corrupted.

You can copy & paste the trigger here, so I can try it on my machine ("right-click => copy" in BTT, then paste the JSON here)

Yes, I re-recorded the action, no help. It just appears the Move to X/Y doesn't do anything now.

[
  {
    "BTTLastUpdatedAt" : 1707680433.6376619,
    "BTTTriggerType" : 0,
    "BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
    "BTTUUID" : "34996428-BCDE-4059-9484-6891C37845F5",
    "BTTPredefinedActionType" : 207,
    "BTTPredefinedActionName" : "Switch To Desktop 1",
    "BTTAdditionalConfiguration" : "270336",
    "BTTKeyboardShortcutKeyboardType" : 5938,
    "BTTTriggerOnDown" : 1,
    "BTTLayoutIndependentChar" : "1",
    "BTTEnabled" : 1,
    "BTTEnabled2" : 1,
    "BTTShortcutKeyCode" : 18,
    "BTTShortcutModifierKeys" : 262144,
    "BTTOrder" : 0,
    "BTTAutoAdaptToKeyboardLayout" : 0,
    "BTTAdditionalActions" : [
      {
        "BTTLastUpdatedAt" : 1707680471.85024,
        "BTTTriggerType" : -1,
        "BTTTriggerParentUUID" : "34996428-BCDE-4059-9484-6891C37845F5",
        "BTTIsPureAction" : true,
        "BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
        "BTTUUID" : "1C4D6B3F-B2CA-4408-8233-8CC87C993D5E",
        "BTTPredefinedActionType" : 345,
        "BTTPredefinedActionName" : "Delay Next Action (async \/ not blocking)",
        "BTTDelayNextActionBy" : "0.1",
        "BTTKeyboardShortcutKeyboardType" : 0,
        "BTTTriggerOnDown" : 1,
        "BTTEnabled" : 1,
        "BTTEnabled2" : 1,
        "BTTShortcutKeyCode" : -1,
        "BTTShortcutModifierKeys" : -1,
        "BTTOrder" : 0,
        "BTTAutoAdaptToKeyboardLayout" : 0
      },
      {
        "BTTLastUpdatedAt" : 1707680471.8502631,
        "BTTTriggerType" : -1,
        "BTTTriggerParentUUID" : "34996428-BCDE-4059-9484-6891C37845F5",
        "BTTIsPureAction" : true,
        "BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
        "BTTUUID" : "C851B90E-AA22-4014-A439-8128D816ACCB",
        "BTTPredefinedActionType" : 153,
        "BTTPredefinedActionName" : "Move Mouse To Position",
        "BTTAdditionalActionData" : {
          "BTTMouseMoveX" : 2526.860107421875,
          "BTTMouseMoveAnchor" : 0,
          "BTTMouseMoveUnitX" : 0,
          "BTTMouseMoveY" : -34.360000610351562,
          "BTTMouseMoveUnitY" : 0
        },
        "BTTKeyboardShortcutKeyboardType" : 0,
        "BTTTriggerOnDown" : 1,
        "BTTEnabled" : 1,
        "BTTEnabled2" : 1,
        "BTTShortcutKeyCode" : -1,
        "BTTShortcutModifierKeys" : -1,
        "BTTOrder" : 1,
        "BTTAutoAdaptToKeyboardLayout" : 0
      }
    ]
  }
]

@Andreas_Hegenberg I upped the async delay to 2seconds and nothing.

See the json above.

The mouse cursor stays exactly where it was before the ^1 and ^2.

I meant re-creating whole action sequence. I think something broke there, I'll check the json for what happened exactly, maybe I can fix it in BTT. For me it works as soon as I change something on the main trigger. (I activated the "Show HUD" checkbox on the ctrl+1 shortcut)

This JSON works here:

[
  {
    "BTTLastUpdatedAt" : 1707681031.4005241,
    "BTTTriggerType" : 0,
    "BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
    "BTTUUID" : "73D94C44-5BB9-4271-9F93-A99720F03D2E",
    "BTTPredefinedActionType" : 366,
    "BTTPredefinedActionName" : "Empty Placeholder",
    "BTTAdditionalConfiguration" : "262145",
    "BTTKeyboardShortcutKeyboardType" : 2302,
    "BTTTriggerOnDown" : 1,
    "BTTLayoutIndependentChar" : "1",
    "BTTEnabled" : 1,
    "BTTEnabled2" : 1,
    "BTTShortcutKeyCode" : 18,
    "BTTShortcutModifierKeys" : 262144,
    "BTTOrder" : 7,
    "BTTAutoAdaptToKeyboardLayout" : 0,
    "BTTAdditionalActions" : [
      {
        "BTTLastUpdatedAt" : 1707681031.4005671,
        "BTTTriggerType" : -1,
        "BTTTriggerParentUUID" : "73D94C44-5BB9-4271-9F93-A99720F03D2E",
        "BTTIsPureAction" : true,
        "BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
        "BTTUUID" : "D02EF5AA-ECF5-41DF-B534-09889DA76F7F",
        "BTTPredefinedActionType" : 207,
        "BTTPredefinedActionName" : "Switch To Desktop 1",
        "BTTKeyboardShortcutKeyboardType" : 0,
        "BTTEnabled" : 1,
        "BTTEnabled2" : 1,
        "BTTShortcutKeyCode" : -1,
        "BTTShortcutModifierKeys" : -1,
        "BTTOrder" : 0,
        "BTTAutoAdaptToKeyboardLayout" : 0
      },
      {
        "BTTLastUpdatedAt" : 1707681025.018446,
        "BTTTriggerType" : -1,
        "BTTTriggerParentUUID" : "73D94C44-5BB9-4271-9F93-A99720F03D2E",
        "BTTIsPureAction" : true,
        "BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
        "BTTUUID" : "8EA1E269-33DB-4785-949E-8D5E67D80F99",
        "BTTPredefinedActionType" : 153,
        "BTTPredefinedActionName" : "Move Mouse To Position",
        "BTTAdditionalActionData" : {
          "BTTMouseMoveX" : 2526.860107421875,
          "BTTMouseMoveAnchor" : 0,
          "BTTMouseMoveUnitX" : 0,
          "BTTMouseMoveY" : -34.360000610351562,
          "BTTMouseMoveUnitY" : 0
        },
        "BTTKeyboardShortcutKeyboardType" : 0,
        "BTTEnabled" : 1,
        "BTTEnabled2" : 1,
        "BTTShortcutKeyCode" : -1,
        "BTTShortcutModifierKeys" : -1,
        "BTTOrder" : 1,
        "BTTAutoAdaptToKeyboardLayout" : 0
      }
    ]
  }
]

OK, I just re-created the whole ^1 sequence. Same thing.

  1. Can I use your json? Edit > Paste seems to do it. No change, doesn't move mouse.
  2. what is "Show HUD"? I see the option now... I don't see anything, though. :confused:

Is it possible some other app is blocking/eating the move mouse action?

Ah sorry, I was wrong - your original JSON is also working fine here. It switches the space and moves the mouse. ('m on 14.3.1 )

I can't think of many reasons why this wouldn't work for you.
Do you maybe use the ctrl modifier key to disable BTT?

All those are unchecked.

Just replied to the other comment that I wonder if some other app is causing the problem... so weird.

Your last comment gave me an idea... and it works now. "Always use old keyboard shortcut implementation" was checked... unchecked and it works. Wow, so happy to have figured this out.

Thanks for the cycles, Andreas. Appreciated.

1 Like

Mhh, blocking mouse movements would be really hard and could only be done by an app working on a lower level than BTT.

Oh that's interesting. Not yet sure why the old keyboard shortcut implementation would affect this, possibly because the old implementation can indeed conflict with other apps or system shortcuts.

This is above my pay grade, but I'm happy it's working again.

I do have a non-Apple keyboard (and mouse) if that makes a difference and I'm using an app called SaneSideButtons (version 1.2.0) to get augmented "back" and "forward" behavior. Btw, I tried (and failed) to get BTT to do the same thing. Maybe I'll give it a new try. I would like to reduce the number of apps.

It's because BTT doesn't recognize the back/forward buttons on my Logitech M510 mouse and SSB's does work without the crappy Logitech software installed. Guess I'll keep the setup as is, unless you can see some way to get BTT to work.

Actually, I just discovered that macOS seems to work fine with the M510 back/forward in Firefox and Chrome and Slack without SaneSideButtons running (or any BTT config)!

Btw, I couldn't find an action for back/forward anyway, in BTT.