AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delete rest of email until start of signature

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
ArchCarrier



Joined: 03 Jun 2008
Posts: 27

PostPosted: Fri Sep 05, 2008 8:08 am    Post subject: Delete rest of email until start of signature Reply with quote

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 Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group