Shortcut «Cmd+v» (paste) stopped working after last update

Hi,

I have quite a few BTT scripts ending up on a simple keyboard shortcut, «Cmd+v», to paste the clipboard contents (edited with Python scripts) in my current document.

Since the last update, this simple keyboard shortcut, «Cmd+v», stopped working.

The previous steps work as expected: if I manually trigger «Cmd+v», the pasted contents is indeed correct.

Any idea why «Cmd+v» would stop working?
Or any workaround to trigger a paste?


Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):

MacBook Pro


Device information:

  • Type of Mac: MacBook Pro (15-inch, 2019), 2,6 GHz 6-Core Intel Core i7, 16 GB 2400 MHz DDR4
  • macOS version: 12.7
  • BetterTouchTool version: 4.289

could you post a full example of such a script? I can't seem to reproduce it yet, maybe it's something specific to that setup.

Hey Andreas,
Thanks for your reply.
Here is one example - I copied the contents of the relevant file.
It's really simple:

  • wait (I noticed it helps prevents bugs)
  • run some python script (which pastes a string to memory)
  • wait
  • cmd+v (paste)

It has worked for years...

Best,
Alexandre

[
  {
    "BTTLastUpdatedAt" : 1697882470.0589771,
    "BTTTriggerType" : 629,
    "BTTTriggerTypeDescription" : "Touch Bar button",
    "BTTTriggerParentUUID" : "5064AB1E-DAB2-4924-B2C5-127A299A232F",
    "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
    "BTTPredefinedActionType" : 129,
    "BTTPredefinedActionName" : "Delay Next Action (blocking)",
    "BTTDelayNextActionBy" : "0.4",
    "BTTUUID" : "47E780CD-FA84-4DFF-A29F-1338B0BDA40D",
    "BTTEnabled" : 1,
    "BTTEnabled2" : 1,
    "BTTOrder" : 6,
    "BTTMergeIntoTouchBarGroups" : 0,
    "BTTAdditionalActions" : [
      {
        "BTTLastUpdatedAt" : 1697882470.058856,
        "BTTTriggerType" : 629,
        "BTTTriggerTypeDescription" : "Touch Bar button",
        "BTTTriggerParentUUID" : "47E780CD-FA84-4DFF-A29F-1338B0BDA40D",
        "BTTIsPureAction" : true,
        "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
        "BTTPredefinedActionType" : 206,
        "BTTPredefinedActionName" : "Execute Shell Script \/ Task",
        "BTTGenericActionConfig2" : ":::-c:::-:::PYTHONPATH=\/Library\/Frameworks\/Python.framework\/Versions\/3.10\/lib\/python3.10\/site-packages\/",
        "BTTShellTaskActionScript" : "python3 \/Volumes\/Coding\/BasicMacOS\/db_tools\/random_foonote_id.py",
        "BTTShellTaskActionConfig" : ":::-c:::-:::PYTHONPATH=\/Library\/Frameworks\/Python.framework\/Versions\/3.10\/lib\/python3.10\/site-packages\/",
        "BTTUUID" : "EA5D68FD-8A77-4EA0-9420-86EA3F1E14C1",
        "BTTEnabled" : 1,
        "BTTEnabled2" : 1,
        "BTTMergeIntoTouchBarGroups" : 0,
        "BTTAdditionalActions" : [
          {
            "BTTLastUpdatedAt" : 1685535252.501718,
            "BTTTriggerType" : -1,
            "BTTTriggerParentUUID" : "EA5D68FD-8A77-4EA0-9420-86EA3F1E14C1",
            "BTTIsPureAction" : true,
            "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
            "BTTLayoutIndependentActionChar" : "c",
            "BTTAutoAdaptActionToKeyboardLayout" : true,
            "BTTGenericActionConfig" : "autoAdapt",
            "BTTShortcutToSend" : "55,8",
            "BTTUUID" : "5BB28E13-2005-4E76-ACBC-C077F83D143F",
            "BTTEnabled" : 1,
            "BTTEnabled2" : 1,
            "BTTOrder" : 7,
            "BTTMergeIntoTouchBarGroups" : 0
          }
        ],
        "BTTTouchBarButtonName" : "«   »",
        "BTTTriggerConfig" : {
          "BTTTouchBarButtonColor" : "75.323769, 75.323769, 75.323769, 255.000000",
          "BTTTouchBarIconInvert" : false,
          "BTTTouchBarItemPlacement" : 0,
          "BTTTouchBarAlwaysShowButton" : false,
          "BTTTouchBarButtonHoverColor" : "248.880000, 146.115000, 128.010000, 181.050000",
          "BTTTouchBarButtonHeight" : 15,
          "BTTTouchBarButtonWidth" : 85,
          "BTTTouchBarItemIconHeight" : 22,
          "BTTTouchBarButtonTextAlignment" : 0,
          "BTTTouchBarButtonUseFixedWidth" : 1,
          "BTTTouchBarAlternateBackgroundColor" : "75.323769, 75.323769, 75.323769, 255.000000",
          "BTTTBWidgetWidth" : 400,
          "BTTTouchBarBorderColor" : "255.000000, 255.000000, 255.000000, 255.000000",
          "BTTTouchBarItemIconWidth" : 22,
          "BTTTouchBarFreeSpaceBeforeButton" : 0,
          "BTTTouchBarButtonFontSize" : 15,
          "BTTTouchBarIconTextOffset" : 5,
          "BTTTouchBarOnlyShowIcon" : false,
          "BTTTouchBarFreeSpaceAfterButton" : 20,
          "BTTTouchBarItemPadding" : 0
        }
      },
      {
        "BTTLastUpdatedAt" : 1697882470.0588369,
        "BTTTriggerType" : -1,
        "BTTTriggerParentUUID" : "47E780CD-FA84-4DFF-A29F-1338B0BDA40D",
        "BTTIsPureAction" : true,
        "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
        "BTTPredefinedActionType" : 129,
        "BTTPredefinedActionName" : "Delay Next Action (blocking)",
        "BTTDelayNextActionBy" : "1",
        "BTTUUID" : "828ABE05-1AFA-43DF-8D68-E16DEE462265",
        "BTTEnabled" : 1,
        "BTTEnabled2" : 1,
        "BTTOrder" : 1,
        "BTTMergeIntoTouchBarGroups" : 0,
        "BTTTouchBarButtonName" : "fn",
        "BTTTriggerConfig" : {
          "BTTTouchBarButtonColor" : "75.323769, 75.323769, 75.323769, 255.000000",
          "BTTTouchBarIconInvert" : false,
          "BTTTouchBarItemPlacement" : 0,
          "BTTTouchBarAlwaysShowButton" : false,
          "BTTTouchBarButtonHoverColor" : "248.880000, 146.115000, 128.010000, 181.050000",
          "BTTTouchBarButtonHeight" : 15,
          "BTTTouchBarButtonWidth" : 70,
          "BTTTouchBarItemIconHeight" : 22,
          "BTTTouchBarButtonTextAlignment" : 0,
          "BTTTouchBarButtonUseFixedWidth" : 1,
          "BTTTouchBarAlternateBackgroundColor" : "75.323769, 75.323769, 75.323769, 255.000000",
          "BTTTBWidgetWidth" : 400,
          "BTTTouchBarBorderColor" : "255.000000, 255.000000, 255.000000, 255.000000",
          "BTTTouchBarItemIconWidth" : 22,
          "BTTTouchBarFreeSpaceBeforeButton" : 0,
          "BTTTouchBarButtonFontSize" : 15,
          "BTTTouchBarFontColor" : "237.000000, 231.000000, 221.000000, 255.000000",
          "BTTTouchBarIconTextOffset" : 5,
          "BTTTouchBarOnlyShowIcon" : false,
          "BTTTouchBarFreeSpaceAfterButton" : 15,
          "BTTTouchBarItemPadding" : 0
        }
      },
      {
        "BTTLastUpdatedAt" : 1697882466.729027,
        "BTTTriggerType" : -1,
        "BTTTriggerParentUUID" : "47E780CD-FA84-4DFF-A29F-1338B0BDA40D",
        "BTTIsPureAction" : true,
        "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
        "BTTLayoutIndependentActionChar" : "v",
        "BTTAutoAdaptActionToKeyboardLayout" : true,
        "BTTGenericActionConfig" : "autoAdapt",
        "BTTShortcutToSend" : "55,9",
        "BTTUUID" : "744C4A0D-51EF-4B8C-BC46-F0ACC8347F4B",
        "BTTEnabled" : 1,
        "BTTEnabled2" : 1,
        "BTTOrder" : 2,
        "BTTMergeIntoTouchBarGroups" : 0
      }
    ],
    "BTTTouchBarButtonName" : "fn",
    "BTTTriggerConfig" : {
      "BTTTouchBarButtonColor" : "75.323769, 75.323769, 75.323769, 255.000000",
      "BTTTouchBarIconInvert" : false,
      "BTTTouchBarItemPlacement" : 0,
      "BTTTouchBarAlwaysShowButton" : false,
      "BTTTouchBarButtonHoverColor" : "248.880000, 146.115000, 128.010000, 181.050000",
      "BTTTouchBarButtonHeight" : 15,
      "BTTTouchBarButtonWidth" : 80,
      "BTTTouchBarItemIconHeight" : 22,
      "BTTTouchBarButtonTextAlignment" : 0,
      "BTTTouchBarButtonUseFixedWidth" : 1,
      "BTTTouchBarAlternateBackgroundColor" : "75.323769, 75.323769, 75.323769, 255.000000",
      "BTTTBWidgetWidth" : 400,
      "BTTTouchBarBorderColor" : "255.000000, 255.000000, 255.000000, 255.000000",
      "BTTTouchBarItemIconWidth" : 75,
      "BTTTouchBarFreeSpaceBeforeButton" : 0,
      "BTTTouchBarButtonFontSize" : 15,
      "BTTTouchBarFontColor" : "237.000000, 231.000000, 221.000000, 255.000000",
      "BTTTouchBarIconTextOffset" : 5,
      "BTTTouchBarOnlyShowIcon" : false,
      "BTTTouchBarFreeSpaceAfterButton" : 15,
      "BTTTouchBarItemPadding" : 0
    }
  }
]

Thanks! With that I was able to find the issue. It's fixed in 4.299 alpha (currently uploading).
It should now also not be necessary to have the delays anymore.

Thank very much Andreas, all good now (actually, better).
What a first-class support.
Have a great day,
A.-

1 Like

Dear Andreas,
I'm running into the same problem again.
The following trigger will not work:

  1. with a keyboard shortcut, without the 2 delays (with your previous fix, I didn't need them anymore)
  2. on a floating menu, it simply won't work, even with the 2 delays.

My version is 4.611.

Thanks!
[
{
"BTTActionCategory" : 0,
"BTTLastUpdatedAt" : 1719898784.3307929,
"BTTTriggerType" : 643,
"BTTTriggerTypeDescriptionReadOnly" : "Named Trigger: md_reference_add_read",
"BTTTriggerTypeDescription" : "|reader}}",
"BTTTriggerParentUUID" : "E845AF1B-FA76-414A-8527-830A6B4D184C",
"BTTTriggerClass" : "BTTTriggerTypeOtherTriggers",
"BTTUUID" : "21B37620-5D69-4814-B3E4-179E1B0C3DD4",
"BTTLayoutIndependentActionChar" : "c",
"BTTAutoAdaptActionToKeyboardLayout" : true,
"BTTGenericActionConfig" : "autoAdapt",
"BTTShortcutToSend" : "55,8",
"BTTTriggerName" : "md_reference_add_read",
"BTTEnabled" : 1,
"BTTEnabled2" : 1,
"BTTOrder" : 7,
"BTTAdditionalActions" : [
{
"BTTActionCategory" : 0,
"BTTLastUpdatedAt" : 1719898815.3248081,
"BTTTriggerParentUUID" : "21B37620-5D69-4814-B3E4-179E1B0C3DD4",
"BTTIsPureAction" : true,
"BTTTriggerClass" : "BTTTriggerTypeOtherTriggers",
"BTTUUID" : "74D17A17-03BD-452E-BC29-549EF151B5DD",
"BTTPredefinedActionType" : 129,
"BTTPredefinedActionName" : "Delay Next Action (blocking)",
"BTTDelayNextActionBy" : "1",
"BTTEnabled" : 1,
"BTTEnabled2" : 1,
"BTTOrder" : 0
},
{
"BTTActionCategory" : 0,
"BTTLastUpdatedAt" : 1719898792.824748,
"BTTTriggerType" : 629,
"BTTTriggerTypeDescriptionReadOnly" : "Touch Bar button",
"BTTTriggerTypeDescription" : "« »",
"BTTTriggerParentUUID" : "21B37620-5D69-4814-B3E4-179E1B0C3DD4",
"BTTTriggerClass" : "BTTTriggerTypeOtherTriggers",
"BTTUUID" : "F4DC2E8E-3413-48C5-B2DC-E82D964C5307",
"BTTPredefinedActionType" : 206,
"BTTPredefinedActionName" : "Execute Shell Script or Task",
"BTTShellTaskActionScript" : "python3 /Volumes/Coding/BasicMacOS/clipboard_tools/clipboard_quotations_reader.py",
"BTTShellTaskActionConfig" : "/bin/bash:::-c:::-:::",
"BTTEnabled" : 1,
"BTTEnabled2" : 1,
"BTTOrder" : 1,
"BTTAdditionalActions" : [
{
"BTTActionCategory" : 0,
"BTTLastUpdatedAt" : 1712428535.575392,
"BTTTriggerParentUUID" : "F4DC2E8E-3413-48C5-B2DC-E82D964C5307",
"BTTIsPureAction" : true,
"BTTTriggerClass" : "BTTTriggerTypeTouchBar",
"BTTUUID" : "7714F734-0E86-4AFF-B1F0-1DD497BF0A53",
"BTTLayoutIndependentActionChar" : "c",
"BTTAutoAdaptActionToKeyboardLayout" : true,
"BTTGenericActionConfig" : "autoAdapt",
"BTTShortcutToSend" : "55,8",
"BTTEnabled" : 1,
"BTTEnabled2" : 1,
"BTTOrder" : 7,
"BTTMergeIntoTouchBarGroups" : 0
}
],
"BTTGestureNotes" : "« »"
},
{
"BTTActionCategory" : 0,
"BTTLastUpdatedAt" : 1719898813.9339061,
"BTTTriggerParentUUID" : "21B37620-5D69-4814-B3E4-179E1B0C3DD4",
"BTTIsPureAction" : true,
"BTTTriggerClass" : "BTTTriggerTypeOtherTriggers",
"BTTUUID" : "B4942767-6E08-45CB-BCA5-846AE001B4A9",
"BTTPredefinedActionType" : 129,
"BTTPredefinedActionName" : "Delay Next Action (blocking)",
"BTTDelayNextActionBy" : "1",
"BTTEnabled" : 1,
"BTTEnabled2" : 1,
"BTTOrder" : 2
},
{
"BTTActionCategory" : 0,
"BTTLastUpdatedAt" : 1719898815.3248448,
"BTTTriggerParentUUID" : "21B37620-5D69-4814-B3E4-179E1B0C3DD4",
"BTTIsPureAction" : true,
"BTTTriggerClass" : "BTTTriggerTypeOtherTriggers",
"BTTUUID" : "87D97837-1FC1-42D2-98C6-78A85B487EA8",
"BTTLayoutIndependentActionChar" : "v",
"BTTAutoAdaptActionToKeyboardLayout" : true,
"BTTGenericActionConfig" : "autoAdapt",
"BTTShortcutToSend" : "55,9",
"BTTEnabled" : 1,
"BTTEnabled2" : 1,
"BTTOrder" : 3
}
],
"BTTGestureNotes" : "|reader}}"
}
]