hugoV,
I was premature with thinking the Clipboard method was going to work.
It's not.
When I was testing it yesterday, I was only testing it in my text editor and was working fine. Now that I've moved over to the apps where I use the hotstrings, it's not pasting the textstrings - at all.
When it does paste, it sometimes is pasting whatever it sees as the last thing on the clipboard. Just went from usable to not working.
What is going on?
Here is the actual coding I incorporated from yours:
Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;setkeydelay, -1
; #=Win ^=Ctrl +=Shift !=Alt
!c:: ;Inserts Contact Log info
ClipboardSave:=ClipboardAll
TodayMinus3 := A_Now
TodayMinus6 := A_Now
EnvAdd, TodayMinus3, -3, days
EnvAdd, TodayMinus6, -6, days
FormatTime, TodayMinus3, %TodayMinus3%, M/d/yy
FormatTime, TodayMinus6, %TodayMinus6%, M/d/yy
;MsgBox % TodayMinus3
;MsgBox % TodayMinus6
Clipboard=
(join`n
%TodayMinus3% -dg- reviewed client issues & involvement
Client gave me authority to negotiate.
%TodayMinus6% -dg- em'd client non-participation advisory
%TodayMinus6% -dg- emailed client request for new OIR
%TodayMinus6% -dg- contact attempt w/client`n
)
;MsgBox % Clipboard
;ClipWait, 2
Send ^v
Clipboard := ClipboardSave
ClipboardSave=
Return
;=======================================================
!d:: ;Inserts Supplement date
ClipSaved:=ClipboardAll
FormatTime, DateString,,M/d/yy
Clipboard= %DateString% -dg- report finished and submitted for supplementation.`n
;ClipWait, 2
Send ^v
Clipboard := ClipSaved
ClipSaved =
Return
I tried ClipWait just to see if that would alleviate the Send ^v from pasting existing CB contents. Didn't have any effect, so I disabled.
Even in the text editor, when doing multiple hotstring keyboard actions, the pasting is sporadic. Sometimes it will paste the intended strings and sometimes it will paste the pre-script CB contents.
Your help and guidance is appreciated.
weg