From 0119b6dc0cedc976dabae942efa2ec561d2681ec Mon Sep 17 00:00:00 2001 From: breadcat Date: Sat, 2 Jan 2016 01:11:29 +0000 Subject: Small changes Tweaked how footers work Improved rename function --- ahk-assistant.ahk | 6 +++++- functions.ahk | 10 +++++++++- 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 = -- cgit v1.2.3