AutoHotkey Community

It is currently May 26th, 2012, 12:02 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: September 5th, 2008, 9:08 am 
Offline

Joined: June 3rd, 2008, 6:44 pm
Posts: 27
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 :)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], Google Feedfetcher, IsNull, JamixZol and 61 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group