Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Basically I have a program that I use to study and I need to be able to quickly choose between a 8 choice answer button. The program does not have inbuilt keyboard shortcuts. I need to answer a question every 2 seconds so moving the mouse around gets tiring if I could just associate where the buttons are to 1-8 on the keyboard that would be great.

share|improve this question

Try the TAB + Enter key. The TAB key should move the cursor to next question, the enter key should answer it.

Setting it up with 1-8 requires more doing, and you need to tell us what program are you using.

share|improve this answer

Try saving scripts like this in AppleScript Editor and assigning them shortcuts with FastScripts or other applications:

tell application "System Events" to tell process "Safari"
    click at {923, 186}
end tell

tell application "Safari" to tell document 1
    do JavaScript "document.querySelectorAll('#hmenus div ul li:nth-child(3) a')[0].click()"
end tell

tell application "Google Chrome" to tell tab 1 of window 1
    execute javascript "document.querySelectorAll('#hmenus div ul li:nth-child(3) a')[0].click()"
end tell

Another option would be to use Keyboard Maestro:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.