ansi-gli/src/ansi-gli.ahk

98 lines
2.0 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-11-05 14:57:01 +01:00
; Version v2.4
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
;
2020-11-05 15:07:06 +01:00
; Map the Alt + X keys to show the ">" symbol
2020-08-14 15:00:38 +02:00
!x::
Send, >
return
;
2020-11-05 15:07:06 +01:00
; Map the AltGr + Shift (Left) + Z keys to show the "<" symbol
2020-08-14 15:00:38 +02:00
<^>!+z::
Send, <
return
;
2020-11-05 15:07:06 +01:00
; Map the AltGr + Shift (Left) + X keys to show the ">" symbol
2020-08-14 15:00:38 +02:00
<^>!+x::
Send, >
return
;
2020-11-05 15:07:06 +01:00
; Map the AltGr + Z keys to show the "<" symbol
2020-08-14 15:00:38 +02:00
<^>!z::
Send, <
return
;
2020-11-05 15:07:06 +01:00
; Map the AltGr + Z keys to show the ">" symbol
2020-08-14 15:00:38 +02:00
<^>!x::
Send, >
return
2020-08-16 17:40:15 +02:00
;
; If you use a 60% Keyboard, maybe need the following combinations:
;
2020-11-05 15:07:06 +01:00
; Map the AltGr + ' keys to show the "\" symbol (Spanish & Italian ISO config)
2020-08-16 17:40:15 +02:00
<^>!'::
Send, \
return
;
2020-11-05 15:07:06 +01:00
; Map the AltGr + ¡ keys to show the "~" symbol (Spanish ISO config)
2020-11-05 14:57:01 +01:00
;<^>!¡::
;Send, ~
;return
2020-08-16 17:40:15 +02:00
;
2020-11-05 15:07:06 +01:00
; Map the AltGr + - keys to show the "\" symbol (ANSI & UK ISO config)
2020-08-16 17:40:15 +02:00
<^>!-::
Send, \
return
;
2020-11-05 15:07:06 +01:00
; Map the AltGr + Esc keys to show the "\" symbol
2020-08-16 17:40:15 +02:00
<^>!*Escape::
Send, \
return
;
2020-11-05 15:07:06 +01:00
; 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
;
2020-11-05 15:07:06 +01:00
; Map Win + Alt to send AltGr command (for SK71 and SK64 keyboards)
LWin & LAlt::RAlt
return
;