Screenshot then OCR?

How do I do an interactive screenshot then OCR? It seems OCR action starts before the screenshot is done?

you can for example use the "Copy Screenshot To Clipboard" action which automatically handles waiting for clipboard changes:

I tried this and it didn't work, added a .3 second delay and it also didn't work. I'm including the code below for reference.

[
  {
    "BTTLastUpdatedAt" : 1792514802.6712799,
    "BTTTriggerType" : 0,
    "BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
    "BTTUUID" : "B47CEAA0-08EC-40DB-93B9-D4BA0068B75B",
    "BTTAdditionalConfiguration" : "1179658",
    "BTTShortcutKeyboardType" : -2052004921,
    "BTTTriggerOnDown" : 1,
    "BTTLayoutIndependentChar" : "2",
    "BTTShortcutKeyCode" : 19,
    "BTTShortcutAdvancedModifierKeys" : "1179658",
    "BTTShortcutModifierKeys" : 1179648,
    "BTTOrder" : 8,
    "BTTAutoAdaptToKeyboardLayout" : 0,
    "BTTActionsToExecute" : [
      {
        "BTTLastUpdatedAt" : 1792514798.2354851,
        "BTTTriggerParentUUID" : "B47CEAA0-08EC-40DB-93B9-D4BA0068B75B",
        "BTTIsPureAction" : true,
        "BTTUUID" : "D40A6B29-BD0D-4452-BED6-87D715CDF9A5",
        "BTTPredefinedActionType" : 500,
        "BTTPredefinedActionName" : "Capture Screenshot to Clipboard",
        "BTTOrder" : 314
      },
      {
        "BTTLastUpdatedAt" : 1792514805.4032412,
        "BTTTriggerParentUUID" : "B47CEAA0-08EC-40DB-93B9-D4BA0068B75B",
        "BTTIsPureAction" : true,
        "BTTUUID" : "C29AA56F-3C83-4AA5-BB3C-C461528A5288",
        "BTTPredefinedActionType" : 498,
        "BTTPredefinedActionName" : "OCR  or  Recognize  or  Extract Text From Clipboard Contents or Image File",
        "BTTAdditionalActionData" : {
          "BTTOCRJoinFoundStringsWithCharacter" : "\\n",
          "BTTOCRJoinBasedOnScreenCoordinates" : true,
          "BTTOCRAutoDetectLanguage" : true
        },
        "BTTOrder" : 315
      }
    ],
    "BTTTriggerLauncherConfig" : {
      "BTTLauncherShowInLauncher" : 0
    }
  }
]

@83652886 you trigger the OCR but don't do anything with the result.

Try this which displays the ocr result and puts it to clipboard:
ocr.bttpreset (4.5 KB)