| View previous topic :: View next topic |
| Author |
Message |
jg0001
Joined: 19 Aug 2009 Posts: 13
|
Posted: Wed Aug 19, 2009 2:10 pm Post subject: How do I make a hotkey out of a CURSOR key? |
|
|
I'm trying to make an AHK script for my netbook to get around having to use two hands to do Page Down, Page Up, Home & End. (these are Fn keys on top of the cursor keys on my netbook).
I tried to create something like the below:
^!{Down}::
send {PgDn}
return
But it doesn't recognize the {Down} part... when I run it, is says that is not a valid key (I'm trying to test & run it on my full size PC).
How do I make a SPECIAL key (i..e cursor down) a key to be used to trigger a script? |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Wed Aug 19, 2009 2:32 pm Post subject: |
|
|
when defining it with ::, leave out the {} _________________
(Common Answers) |
|
| Back to top |
|
 |
jg0001
Joined: 19 Aug 2009 Posts: 13
|
Posted: Wed Aug 19, 2009 2:49 pm Post subject: |
|
|
Many thanks!
For anyone else that would like my little script, here it is (I switched over to using just the Alt key instead of Ctrl+Alt):
| Quote: | !Down::send {PgDn}
!Up::send {PgUp}
!Left::send {Home}
!Right::send {End} |
All of the below can be placed in a single file -> NetKeys.ahk
This allows me to to the ALT key in combination with the cursor keys to achieve the same result as if I used the special laptop Fn key (which is all the way on the other side of the keyboard). |
|
| Back to top |
|
 |
|