I am attempting to take a screenshot of a tooltip that appears when a user hovers over it, and immediately disappears upon any key press or cursor movement. Unfortunately, this means the typical shortcut I use for screenshots (⌘+SHIFT+4) causes the element to disappear.
Is there any way I can capture this tooltip, preferably without installing any third party software?
Best Answer
You can do this using the screencapture CLI:
Define a delay using
-T <seconds>
. Use-C
to capture the cursor too.Add
-i
to capture interactively. This uses the normal capture region selection available from ⌘⇧4, however you can combine this with-T
to add a delay so that it captures the tooltip in the region.