AutoHotkey Community

It is currently May 26th, 2012, 8:28 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: August 19th, 2009, 3:10 pm 
Offline

Joined: August 19th, 2009, 3:06 pm
Posts: 13
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 19th, 2009, 3:32 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
when defining it with ::, leave out the {}

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 19th, 2009, 3:49 pm 
Offline

Joined: August 19th, 2009, 3:06 pm
Posts: 13
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).


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Google [Bot], Pulover, tomoe_uehara and 52 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group