0
votes

I modified a simple old AHK script and that basically turns a "." (dot) key pressed to a ":" (colon) as output.

The problem was I needed to map both keyboard dots (the numpad one and the one near the right Alt key). Well I somewhat guessed by trial how to modify the code and it works but I would like to understand why and how!

I feel AHK documentation has improved much in recent years, but I can't find a way to get to the bottom of this. Here's the code I wish you to explain (my troubles are primarily on understanding the last line and its connection with the previous ones):

SC034::
NumPadDot:::
:::NumPadDot::SC034

Please, provide links to AHK official documentation whenever possible, I'd very appreciate! Thank you

1

1 Answers

1
votes
SC034::              ; Label for scancode 34 ("."). Since there's no definition
                     ; on this line it's grouped with the next definition
NumPadDot:: :        ; NumPadDot and SC34 will map to ":"
:::NumPadDot::SC034  ; defines a hotstring that outputs "SC034" when you type ":NumPadDot"