I would like for each time user press spacebar, for the script to pass keystroke space to a browser (Firefox) to play a game while counting the number of times spacebar was hit.
How do you do that with AppleScript?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityNot with AppleScript, but with Whatpulse. You can see exactly how many times you hit spacebar. When you denote what the amount before you play the game, and check what it is afterward, you have the amount of spacebar hits. And its fun to keep track of your statistics!