Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

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.