0

Is it possible to create a mac OSX dock icon that activates the page down key?

3
  • 1
    May I ask why you would need such a thing?
    – markhunte
    Feb 17, 2015 at 16:47
  • @markhunte There is no pagedown key and I don't like the fn+down arrow key shorcut. It is to difficult to reach.
    – William
    Feb 17, 2015 at 17:36
  • You tried Option + down
    – markhunte
    Feb 17, 2015 at 21:25

1 Answer 1

1

Here is a simple example:

tell application "System Events"
    set frontmostProcess to first process where it is frontmost
    delay 0.01
    key code 121
end tell

116 is key code for page up. Here's a list of the other key codes: Key Codes for Function and Special Keys in Applescript

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .