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 to add a dot to the numpad?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Boskoop



Joined: 01 Jan 2005
Posts: 71

PostPosted: Sun Jul 24, 2005 12:58 pm    Post subject: How to add a dot to the numpad? Reply with quote

Background:
Number- and date formats are language and country specific. A lot of European languages use decimal comma instead of decimal point for numbers (7 1/2 is 7.5 in the USA and Great Britain, but 7,5 in most European countrys). The preferred date and time format is different, too (a lot of European countrys use the point as for 24.12.2000 in dates and/ or the colon as in 12:05:00 for times).

If you have to punch a lot of numbers, dates and times in your country-specific setting, the numpad is short of some letters. So I tried to figure out ways to add extra letters by using Autohotkey's hotkeys and hotstrings. The letter I was missing most was the dot (.), so I used this as an example.

All the ways I came up with do have drawbacks. It would be nice to learn about other people's solutions.

How to get a dot "." as an extra letter on the Numpad
1.Numlock + *
Code:
~NumLock & NumpadMult:: send, .

Stable and the easiest was to add further letters, but not really intuitive.

2. Numpad0 + NumpadDot (Type "0 + ,")
Code:
~Numpad0 & NumpadDot:: send, .{left}{backspace}{right}

Don't linger too long with your thumb on "0", or you get "00000000000000." instead of "."

3. Type two commas (",,") to get a dot (".")
Code:
:*z?:,,::.

Amazingly cryptic for Autohotkey, but I like this best. But it must be inactivated when writing Autohotkey scripts Sad.

Boskoop
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions 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