I'm currently evaluating the quality of several 10000s of files containing heart beat profiles of a gastropod (yes!).
To complete this task I have used R to program an interface that allows me to plot one file, decide wether it is good or bad (there's lots of things that go wrong while capturing the heart beat...), click on the appropriate button (OK vs BAD) and proceed to plot the next file.
This is the interface I have to use (there is no substitute for this), and there is no work-around the need to click in either of the buttons (no way to create a shortcut for that button). I could use TAB to cycle through the buttons, but that is totally impractical as it will cycle through the window buttons as well (FILE, EDIT, etc).
Given the previous, I wonder if there is a way to create a keyboard shortcut to simulate a click in a specific place on the screen... this way I could setup 2 shortcuts for the places where the buttons are, thus allowing me to press, for example, OPTION+G for good files and OPTION+B for bad ones without having to guide the mouse to the actual button (remind that I will have to do this > 80000 times...). Many thanks in advance!