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 

Remove Empty Lines In Task Created From Email in Outlook

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
amitk



Joined: 13 Mar 2008
Posts: 7

PostPosted: Thu Jun 12, 2008 5:00 pm    Post subject: Remove Empty Lines In Task Created From Email in Outlook Reply with quote

The subject says it all.

When I drag an email from Outlook and drop it on Tasks icon in left navigation pane, a new task window is displayed. The concept is good but the only problem is that it embeds extra empty lines in the resulting task body and I end up removing them manually every time to make the task look good or just ok.

Is there a script which can remove all extra lines in such scenario from selected text in the task body?

Thanks.

Regards.
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Thu Jun 12, 2008 5:15 pm    Post subject: Reply with quote

is it plain text? if so, you can copy to the clipboard and do a stringreplace
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
amitk



Joined: 13 Mar 2008
Posts: 7

PostPosted: Fri Jun 13, 2008 5:40 am    Post subject: Reply with quote

I actually want to do it in place, without switching to any other application or launching any tool. Just a hot key and done!

I am attaching snapshot of email and then the resulting task, to demo what I mean. It is HTML text we are talking about.

Email:




Task Created From Email:



Thanks.
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Fri Jun 13, 2008 6:13 am    Post subject: Reply with quote

engunneer wrote:
is it plain text? if so, you can copy to the clipboard and do a stringreplace


my comment stands
Code:

;select text and hit windows + c
#c::
send, ^x
Clipwait, 1
Stringreplace, clipboard, `n`r, `n, All
send, ^v
return


you will have to fiddle.
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
amitk



Joined: 13 Mar 2008
Posts: 7

PostPosted: Fri Jun 13, 2008 10:03 am    Post subject: Reply with quote

thanks but it doesn't work right.

here is whatI created from the help manual:

Code:
;select text and hit windows + c
#c::
send, ^x
Clipwait, 1
; Remove all blank lines from the text in a variable:
Loop
{
    StringReplace, clipboard, clipboard, `r`n`r`n, `r`n, UseErrorLevel
    if ErrorLevel = 0  ; No more replacements needed.
    break
}
send, ^v
return
[/quote]

but this doesn't work either.
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Fri Jun 13, 2008 5:23 pm    Post subject: Reply with quote

what does it do? nothing?
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
amitk



Joined: 13 Mar 2008
Posts: 7

PostPosted: Sat Jun 14, 2008 1:27 am    Post subject: Reply with quote

something unexpected and at times nothing.

can you fix it? and once you see verify it , could you please post it here.

thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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