summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbreadcat2016-01-02 01:11:29 +0000
committerbreadcat2016-01-02 01:11:29 +0000
commit0119b6dc0cedc976dabae942efa2ec561d2681ec (patch)
tree7f7dae987524570967542f53bc1c94a115bd7af8
parentdfc109b34b1edacde23267cc4740489daecfc972 (diff)
downloadahka-0119b6dc0cedc976dabae942efa2ec561d2681ec.tar.gz
ahka-0119b6dc0cedc976dabae942efa2ec561d2681ec.tar.bz2
ahka-0119b6dc0cedc976dabae942efa2ec561d2681ec.zip
Small changes
Tweaked how footers work Improved rename function
-rw-r--r--ahk-assistant.ahk6
-rw-r--r--functions.ahk10
2 files changed, 14 insertions, 2 deletions
diff --git a/ahk-assistant.ahk b/ahk-assistant.ahk
index e9d3b7d..8fe673d 100644
--- a/ahk-assistant.ahk
+++ b/ahk-assistant.ahk
@@ -140,9 +140,13 @@ Insert::appendClipboard()
:*:_cw::
insertCygwin()
Return
+:*?:_foot::
+ insertFooter()
+ Return
; special character insertion
; swedish
:c*?:(Ao)::Å
+:c*?:(AO)::Å
:c*?:(ao)::å
:c*?:(Ai)::Ä
:c*?:(ai)::ä
@@ -371,7 +375,7 @@ Insert::appendClipboard()
+PgUp::Send {Home} ; makes sense, kinda
Ralt & Enter:: ; overflow
Alt & Enter::toggleFullscreen() ; leave flash full screen with a keyboard command
- :*?:_foot::
+ :*?:_crm::
insertCRMFooter()
return
#IfWinActive
diff --git a/functions.ahk b/functions.ahk
index eeb4561..ada63b7 100644
--- a/functions.ahk
+++ b/functions.ahk
@@ -72,6 +72,14 @@ insertCRMFooter() {
Return
}
+insertFooter() {
+ Send, {Enter}
+ insertDateTime()
+ Send, {Space}
+ insertSignature()
+ Return
+ }
+
insertDate() {
FormatTime, CurrentDateTime,, yyyy-MM-dd
Send %CurrentDateTime%
@@ -227,7 +235,7 @@ explorerRename() {
if (ExtensionPos != -1)
{
Position := StrLen(Clipboard) - ExtensionPos
- Send, +{Left %Position%}
+ Send, {End}{Left %Position%}{CtrlDown}{ShiftDown}{Home}{ShiftUp}{CtrlUp}
}
Clipboard = %backupClipboard%
backupClipboard =