This is a collection of some of the most impressive and also easiest macros users wrote. As an inspiration and starter for fellow Keyboard Maestros.
A macro with the following layout:
Type the ⌘C Keystroke Filter Clipboard with XXX Type the ⌘V Keystroke
Will serve as a template for many useful macros:
You cal also use filters to count the number of characters, words or lines, and then replace the Paste action with:
Notification ‘Word Count:’ %Clipboard%
Using the Move Front Window by Pixels
action you can create a window mover group. I personally have this in a group that is activated/deactivated with a hot key
. This way I can execute macros multiple times after another, e.g. to move a window.
Also nice and useful are macros to maximize and center windows.
The Manipulate Window
action is also great to save and recall “window presets”, so that you can quickly move and resize windows to your preferred dimensions, e.g.:
Resize Front Window to Pixels 1280x720 Center Front Window
If you found a particular window size that you like use a Measure Window action to get its dimensions:
Set Variable ‘WindowSize’ to Text ‘%WindowSize%1%’ Display Text ‘%Variable%WindowSize%’
This will save the front window's dimensions to a variable named WindowSize
. You can view the value of this variable in the preferences. Alternatively add a Set Variable ‘WindowSize’ to Text ‘%Delete%’
to delete the variable at the end.
Slightly more advanced are macros to move a window to screen edges without resizing.
Create a new macro and map it to the hot key “m” inside the Windows macro group:
Highlight Oval at MOUSEX(),MOUSEY(),200,100
During a recent CMUG General Meeting demo of Keyboard Maestro, I showed a couple of shortcut key “guides”. The guides are placed adjacent to the keyboard function keys to provide a visual reminder of what shortcuts were available. In this article I will give a general method for producing the guides using Apple Pages.
If one has an extended keyboard (almost 16 inches wide), a guide can be created in two or three sections to accommodate the navigation and numerical pad sections. However, the same general steps would be used.
Guides can be printed onto full sheet adhesive labels or attached with double sided tape or adhesive spray. Depending upon the height, one might attach the guide to the keyboard itself. (On my portable, the guide is adhered to the hinge surface.) In some cases, an angled display stand with flat legs to be slid under a keyboard may need to be constructed. (Such is the case with my Mac’s extended keyboard.) Even a creased and bent piece of heavy cardboard may suffice. However its mounted, the guide should serve as a quick visual reference and free your mind to remember things other than all those shortcuts.