summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbreadcat2015-06-08 01:07:05 +0100
committerbreadcat2015-06-08 01:07:05 +0100
commitbbfa0900799f838ef934f08ad682e3985115a571 (patch)
tree54685c42280c8c7ec0fa4b9e4b2dc7a81e0b1dcb
parent7d83e751a5072b90a2d47b61bb85909344d966d5 (diff)
downloadahka-bbfa0900799f838ef934f08ad682e3985115a571.tar.gz
ahka-bbfa0900799f838ef934f08ad682e3985115a571.tar.bz2
ahka-bbfa0900799f838ef934f08ad682e3985115a571.zip
Improved hotstrings
Hotstrings now fire mid-word, added Norwegian support and mostly-fixed how é is entered.
-rw-r--r--ahk-assistant.ahk64
-rw-r--r--functions.ahk10
2 files changed, 35 insertions, 39 deletions
diff --git a/ahk-assistant.ahk b/ahk-assistant.ahk
index 948eced..0251c5e 100644
--- a/ahk-assistant.ahk
+++ b/ahk-assistant.ahk
@@ -123,38 +123,44 @@ Insert::appendClipboard()
Return
;swedish
-:c*:(Ao)::Å
-:c*:(ao)::å
-:c*:(Ai)::Ä
-:c*:(ai)::ä
-:c*:(Oi)::Ö
-:c*:(oi)::ö
+:c*?:(Ao)::Å
+:c*?:(ao)::å
+:c*?:(Ai)::Ä
+:c*?:(ai)::ä
+:c*?:(Oi)::Ö
+:c*?:(oi)::ö
+;norwegian
+:c*?:(AE)::Æ
+:c*?:(ae)::æ
+:c*?:(O/)::Ø
+:c*?:(o/)::ø
;german
-:c*:(Ui)::Ü
-:c*:(ui)::ü
-:*:(ss)::ß
+:c*?:(Ui)::Ü
+:c*?:(ui)::ü
+:*?:(ss)::ß
;spanish
-:c*:(Ny)::Ñ
-:c*:(ny)::ñ
-:c*:(A-)::Á
-:c*:(a-)::á
-:c*:(E-)::É
-; :c*:(e-)::é ;conflicts with C-A-e insert which is annoying
-Ralt & e::typeAcuteE() ;awful, awful workaround
-:c*:(I-)::Í
-:c*:(i-)::í
-:c*:(O-)::Ó
-:c*:(o-)::ó
-:c*:(U-)::Ú
-:c*:(u-)::ú
-:*:(!!)::¡
-:*:(??)::¿
+:c?*:(Ny)::Ñ
+:c?*:(ny)::ñ
+:c?*:(A-)::Á
+:c?*:(a-)::á
+:c?*:(E-)::É
+:c*:(e-)::
+ Send {ASC 130} ;C-A-e insertion for é is weird
+ Return
+:c?*:(I-)::Í
+:c?*:(i-)::í
+:c?*:(O-)::Ó
+:c?*:(o-)::ó
+:c?*:(U-)::Ú
+:c?*:(u-)::ú
+:*?:(!!)::¡
+:*?:(??)::¿
;symbols
-:*:(c)::©
-:*:(r)::®
-:*:(tm)::™
-:*:(ee)::€
-:*:(deg)::°
+:*?:(c)::©
+:*?:(r)::®
+:*?:(tm)::™
+:*?:(ee)::€
+:*?:(deg)::°
;stupid fingers
:*:seperated::separated
:*:seperate::separate
diff --git a/functions.ahk b/functions.ahk
index 9e7ae09..84c4ef1 100644
--- a/functions.ahk
+++ b/functions.ahk
@@ -139,16 +139,6 @@ typeCygwin() {
Return
}
-typeAcuteE() {
- ; {AltDown}130{AltUp} doesn't work for some reason, don't judge me
- ClipSaved := ClipboardAll
- Clipboard = é
- Send ^v
- Clipboard := ClipSaved
- ClipSaved =
- Return
- }
-
cmdPaste() { ;C-v / S-insert pastes into cmd
CoordMode, Mouse, Relative
MouseMove, 100, 100