Tom
February 13, 2017, 3:08am
8
joensf:
I used KM to program one of the mouse buttons (tried all 10 buttons) to specifically trigger a TYPE ⇧⌘4 KEYSTROKE macro.
[…]
Oddly, and frustratingly so, the other 80% of the time the macro is triggered using a mouse button, it will...all on its own, […] marquee out a screen selection area by default that always begins exactly at the 0,0 screen coordinate position, extends exactly down to wherever the cursor happens to be sitting on the screen at the time of trigger and records that to a PNG file or clipboard - that happens 80% of the time, exactly as described, it DOES NOT WAIT FOR ME to make the selection area, as it should.
Assign this macro to your mouse button and see if if you get the same buggy behavior.
The macro does not press ⌘4 or ⇧⌘4, it runs the screencapture
tool via the shell. So this might make a difference. Perhaps.
_[test} Simple Screen Capture with Mouse Selection Mode.kmmacros (1.4 KB)
It copies the image only to the clipboard. But it is just for testing.
If this method works for you, then you can try my Enhanced Screenshot macro, which works in a similar way but offers the full set of options (save to file, naming, etc.). Or, if this is too much, we can build something in-between.
1 Like