AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I make a hotkey out of a CURSOR key?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
jg0001



Joined: 19 Aug 2009
Posts: 13

PostPosted: Wed Aug 19, 2009 2:10 pm    Post subject: How do I make a hotkey out of a CURSOR key? Reply with quote

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
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Wed Aug 19, 2009 2:32 pm    Post subject: Reply with quote

when defining it with ::, leave out the {}
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
jg0001



Joined: 19 Aug 2009
Posts: 13

PostPosted: Wed Aug 19, 2009 2:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group