ansi-gli/src/ansi-gli.ahk

94 lines
1.9 KiB
AutoHotkey
Raw Normal View History

2020-08-14 15:00:38 +02:00
;
; ################################################
; # ANSI-GLI - ANSI Greater & Less in ISO #
; # #
2020-08-16 17:40:15 +02:00
; # Author: q3aql #
2020-08-14 15:00:38 +02:00
; # Contact: q3aql@protonmail.ch #
2020-08-16 17:40:15 +02:00
; # License: GPL v2.0 #
2020-08-14 15:00:38 +02:00
; ################################################
2020-10-05 19:22:39 +02:00
; Version v2.2
2020-08-16 17:40:15 +02:00
;
; You've probably noticed that when you switch from an ISO keyboard
; to an ANSI keyboard, the "<" and ">" keys are missing. When you
; configure an ANSI keyboard as ISO (for example in Spanish), you can
; use it in the same way as before, but those symbols are the only ones
; that you cannot type, so this script will solve the problem.
2020-08-14 15:00:38 +02:00
;
; Map the Alt + Z keys to show the "<" symbol
!z::
Send, <
return
;
;Map the Alt + X keys to show the ">" symbol
!x::
Send, >
return
;
;Map the AltGr + Shift (Left) + Z keys to show the "<" symbol
<^>!+z::
Send, <
return
;
;Map the AltGr + Shift (Left) + X keys to show the ">" symbol
<^>!+x::
Send, >
return
;
;Map the AltGr + Z keys to show the "<" symbol
<^>!z::
Send, <
return
;
;Map the AltGr + Z keys to show the ">" symbol
<^>!x::
Send, >
return
2020-08-16 17:40:15 +02:00
;
; If you use a 60% Keyboard, maybe need the following combinations:
;
;Map the AltGr + ' keys to show the "\" symbol (Spanish & Italian ISO config)
<^>!'::
Send, \
return
;
;Map the AltGr + ¡ keys to show the "~" symbol (Spanish ISO config)
<^>!¡::
Send, ~
return
;
2020-08-16 18:38:03 +02:00
;Map the AltGr + - keys to show the "\" symbol (ANSI & UK ISO config)
2020-08-16 17:40:15 +02:00
<^>!-::
Send, \
return
;
;Map the AltGr + Esc keys to show the "\" symbol
<^>!*Escape::
Send, \
return
;
;German and French configuration extra key combinations
<^>!+w::
Send, <
return
;
<^>!w::
Send, <
return
;
!w::
Send, <
return
;
!y::
Send, <
return
;
<^>!+y::
Send, <
return
;
<^>!y::
Send, <
return
;