thank you for the scripts which allow you to run step by step through history ← and →
If you long press (click) manually on the < and > history buttons, the display is even better in terms of speed and workflow: you see the complete past or future history as a drop down list, but I find that the less I use the trackpad and cursor the better, especially to click on a tiny icon.
I tried implementing this using your script by simply running the same script multiple times. It sometimes worked, but most of the time not.
How would you modify a script like the one below to long press (click) button 1 instead of a simple click ?
tell application "System Events"
tell application process "Keyboard Maestro"
tell front window
tell group 4
click button 1