I use AutoHotKey to add the ">" to responses on Usenet when I'm quoting text, which inexplicably Windows chose to leave out of the new version of Windows Live Mail.
But there are a couple of problems with it. For one thing, it cuts off my signature line. Secondly, it cuts off the line that is placed at the beginning of the response that tells who you're responding to.
Another odd thing about it, is that to apply AutoHotkey, I hit "WIndows Key-9". And the Autohotkey will properly put the ">" symbol in front of the quoted text at first but the instant I let go of the buttons it clips off the signature line at the end and the identifier line at the beginning.
Anyone know how to fix this?
Bob Clark
Problem with Autohotkey with Windows Live Mail.
Re: Problem with Autohotkey with Windows Live Mail.
Here is what my copy of the script looks like:
=====================================================================
/*
Windows Live Mail quotefix
AutoHotkey script (http://www.autohotkey.com/)
source: http://www.dusko-lolic.from.hr/
last update: 2011-01-28 (YYYY-MM-DD)
*/
signature= ;enter your signature between the brackets
(
Sig inserted by AutoHotkey ver. %A_AhkVersion% (signature - first line)
WLMail QuoteFix -> http://www.dusko-lolic.from.hr/ (signature - second line)
)
SigLines=2 ;number of lines in signature (cursor positioning)
qchar:=">" ;quote character
garbage1=__________ ESET
garbage2=__________ Information from ESET
;string literal (dash dash space) cannot end with space, has to be built
sigdashes=-- -
stringleft,sigdashes,sigdashes,3
;hotkey is Win+9 (upper row 9, not numeric pad 9)
#9::
;give up if active window is not WLM - delete the following two lines to make quotefix work with any program
IfWinNotActive, ahk_class ATH_Note
return
send,{Space} ;in case of a new (empty) message, give the script something to copy to clipboard
send,^a ;select all text (CTRL+A)
sleep,200 ;give WLM time to react - improves script reliability
send,^c ;copy to clipboard (CTRL+C)
sleep,200
out=
Loop, parse, clipboard , `n, `r
{
ifequal A_LoopField,%sigdashes% ;stop quoting if signature delimiter is found
break
if A_INDEX>2 ;the first two lines of quoted message are empty, skip them and start processing from the third line
{
if InStr(A_LoopField,garbage1) or InStr(A_LoopField,garbage2) ;cut off garbage from the end of quote
break
if A_INDEX>3 ;insert quote character from line four onwards, the 3rd line is "xyz wrote..." and doesn't need quote char
out:=out . qchar
out=%out%%A_LoopField%`r
}
}
out=%out%`r ;insert an empty line (make space for reply)
out=%out%%sigdashes%`r ;signature delimiter
out=%out%%signature% ;signature
clipboard=%out% ;push to clipboard
send,^a ;select all, yes, again. Should not be necessary but improves cooperation with WLM
sleep,100
send,^v ;paste into WLM (CTRL+V)
sleep,200
loop,% SigLines+1 ;set the cursor just above the signature
send,{Up}
return
;debug - reload edited script with Win+8
/*
#8::
reload
return
*/
==================================================================
=====================================================================
/*
Windows Live Mail quotefix
AutoHotkey script (http://www.autohotkey.com/)
source: http://www.dusko-lolic.from.hr/
last update: 2011-01-28 (YYYY-MM-DD)
*/
signature= ;enter your signature between the brackets
(
Sig inserted by AutoHotkey ver. %A_AhkVersion% (signature - first line)
WLMail QuoteFix -> http://www.dusko-lolic.from.hr/ (signature - second line)
)
SigLines=2 ;number of lines in signature (cursor positioning)
qchar:=">" ;quote character
garbage1=__________ ESET
garbage2=__________ Information from ESET
;string literal (dash dash space) cannot end with space, has to be built
sigdashes=-- -
stringleft,sigdashes,sigdashes,3
;hotkey is Win+9 (upper row 9, not numeric pad 9)
#9::
;give up if active window is not WLM - delete the following two lines to make quotefix work with any program
IfWinNotActive, ahk_class ATH_Note
return
send,{Space} ;in case of a new (empty) message, give the script something to copy to clipboard
send,^a ;select all text (CTRL+A)
sleep,200 ;give WLM time to react - improves script reliability
send,^c ;copy to clipboard (CTRL+C)
sleep,200
out=
Loop, parse, clipboard , `n, `r
{
ifequal A_LoopField,%sigdashes% ;stop quoting if signature delimiter is found
break
if A_INDEX>2 ;the first two lines of quoted message are empty, skip them and start processing from the third line
{
if InStr(A_LoopField,garbage1) or InStr(A_LoopField,garbage2) ;cut off garbage from the end of quote
break
if A_INDEX>3 ;insert quote character from line four onwards, the 3rd line is "xyz wrote..." and doesn't need quote char
out:=out . qchar
out=%out%%A_LoopField%`r
}
}
out=%out%`r ;insert an empty line (make space for reply)
out=%out%%sigdashes%`r ;signature delimiter
out=%out%%signature% ;signature
clipboard=%out% ;push to clipboard
send,^a ;select all, yes, again. Should not be necessary but improves cooperation with WLM
sleep,100
send,^v ;paste into WLM (CTRL+V)
sleep,200
loop,% SigLines+1 ;set the cursor just above the signature
send,{Up}
return
;debug - reload edited script with Win+8
/*
#8::
reload
return
*/
==================================================================
- divanebaba
- Posts: 804
- Joined: 20 Dec 2016, 03:53
- Location: Diaspora
Re: Problem with Autohotkey with Windows Live Mail.
Hi.
My english is so bad, you will not believe why.
OK, I don't really have understand your problem and have even not really understand the job, your script is doing.
But one thing seems strange.
You are parsing with `n and later you add only `r.
Look to this section
If you would replace `r with `n, maybe your problem gets solved.
My english is so bad, you will not believe why.
OK, I don't really have understand your problem and have even not really understand the job, your script is doing.
But one thing seems strange.
You are parsing with `n and later you add only `r.
Look to this section
Code: Select all
out=%out%%A_LoopField%`r
}
}
out=%out%`r ;insert an empty line (make space for reply)
out=%out%%sigdashes%`r ;signature delimiter
Re: Problem with Autohotkey with Windows Live Mail.
I don't believe that's the problem since I changed very little with the script that came with the download. Maybe I deleted a sig file that came with it but that's it.
Bob Clark
Bob Clark
Who is online
Users browsing this forum: mmflume, peter_ahk, ShatterCoder and 139 guests