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 

Shift & NumPad1

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



Joined: 12 Jul 2004
Posts: 51
Location: Fife,Wa

PostPosted: Tue Aug 03, 2004 5:00 am    Post subject: Shift & NumPad1 Reply with quote

I do a lot of data entry, and discovered that most of it uses the NumPad, so I
remapped most of the keys around the NumPad to help, and I can also do 1 key perform scripts in my dB, FileMaker Pro. Suffice to say, I love this App.
My problem, I'm trying to do something that should be very easy, but I'm obviously doing something wrong.
What I want-
LShift & NumPad1::Send, ST{Space} (if you're entering a street number that ends in 1, it should have a "ST " after it, ends in 2, a "ND ", etc,)
It doesn't work. I've tried adding ~,*,$,everything I could find in the Help, it just does nothing. If I change Shift to LCtrl or LWin, it works, but I really would like to use the
Shift key. Please help.

Thanx
Don
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10463

PostPosted: Tue Aug 03, 2004 11:14 am    Post subject: Reply with quote

The reason Shift+Numpad combinations do not work is that the shift key temporarily turns off Numlock while you're holding it down. Therefore, you would use NumpadEnd instead of Numpad1. Also, you need to omit the LShift prefix because the keyboard driver forces the shift key into the up position the moment you press a Numpad key. Example:

NumPadEnd::MsgBox You pressed Shift+Numpad1, or pressed Numpad1 while Numlock was off.

It's an obscure issue so I'm glad you asked about it.
Back to top
View user's profile Send private message Send e-mail
exhueydriver



Joined: 12 Jul 2004
Posts: 51
Location: Fife,Wa

PostPosted: Tue Aug 03, 2004 4:02 pm    Post subject: Reply with quote

Thanks, Chris
So to re-map the Number keys on the NumPad with (I have NumPadLock Alwayson) the Shift key as modifier, I just use the PGUp, PgDn, etc.
BTW, in your example, shouldn't it be
+NumPadEnd::MsgBox etc.?
I may actually learn this stuff!
Again, Thanks.
Don
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10463

PostPosted: Tue Aug 03, 2004 8:16 pm    Post subject: Reply with quote

Quote:
BTW, in your example, shouldn't it be
+NumPadEnd::MsgBox etc.?

No, I don't think it would work with the +. This is because even though you are physically holding down the shift key, the keyboard driver forces it into the up position the moment you press a Numpad key. Thus, AHK actually sees you release the shift key (even though you didn't) right before pressing NumpadEnd.
Back to top
View user's profile Send private message Send e-mail
exhueydriver



Joined: 12 Jul 2004
Posts: 51
Location: Fife,Wa

PostPosted: Wed Aug 04, 2004 12:20 am    Post subject: Reply with quote

My bad, trying to correct the guy who wrote this, especially
when I didn't even try it out first.
My apologies
Don
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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