Assign key combination to Page Up and Page Down keys? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Guest

Assign key combination to Page Up and Page Down keys?

22 Apr 2018, 16:05

I apologize if this is a silly question, but I'm completely lost. I want to assign the following combinations to Page Up and Page Down keys:

- Page Up: space bar + backspace + control + down arrow
- Page Down: control + shift + P

How can I do this? Thank you.
Guest

Re: Assign key combination to Page Up and Page Down keys?  Topic is solved

22 Apr 2018, 17:38

Thank you for your reply. I've already checked out those resources, but I'm still confused. I've tried the following:

Code: Select all

{PgUp}::
Send, {Space}{Backspace}{Control}{Down}
Return

Code: Select all

{PgDn}::
Send, {Control}{Shift}{P}
Return
But it tells me that it is an invalid hotkey and I don't know what I'm doing wrong.
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Assign key combination to Page Up and Page Down keys?

23 Apr 2018, 08:55

youre almost there

Code: Select all

PgUp::
Send, {Space}{Backspace}{Control}{Down} 
; remarks: they way control/shift and other modifiers are written here will press and release them. 
; if you instead want to achieve ctrl+Down arrow, do this: {Control Down}{Down}{Control Up}
Return

PgDn::
Send, {Control}{Shift}{p} 
; remarks: uppercase P actually presses Shift, sends lowercase p, then releases Shift
Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 338 guests