ArchCarrier
Joined: 03 Jun 2008 Posts: 27
|
Posted: Fri Sep 05, 2008 8:08 am Post subject: Delete rest of email until start of signature |
|
|
I like to send short replies to the emails I receive (instead of including the whole thread like some people do), but I got tired of deleting everything up to my signature, so I created this rough script.
My mail client (Opera) adds two dashes before signatures, so I used those as a delimiter. You should change the delimiter according to your mail program.
| Code: | #Del::
Temp := ClipboardAll
Send +^{End}
Send ^x
Reply := Clipboard
Delim = `n--
StringGetPos, pos, Reply, %Delim%
pos := pos+7 ; I needed this to get rid of the dashes and extra line breaks below
Sig := SubStr(Reply, pos)
Clipboard := Sig
Send ^v
Clipboard := Temp
Temp =
return |
Comments are more than welcome, since I'm not very good at writing my own AHK scripts  |
|