Re: [Clip] Is it possible to email from a text file with a clip ...
- Here is a revised which will:
1. start outlook express if necessary (obviously change path as required for
2. allows a multiple line "comment" as the reality will be multiline
comments even though my example was one line,
3. added a tab because I have bcc field open in my outlook express.
Thanks for the help.
;hacked by don 1/3/03 dpasseng@...
;1. Outlook to be open // no longer required
;2. Select the text of message with comment
;3. Clip create a new message
; Text = text of the message select
; add jump start of select to make
; work if selected more than one line of message comment
; Line up
; Copy subject text without subject word
; Up one line
; Select line
; Find @
; H: Only searches within selection if text is highlighted
^!Find @ H
; Select email of the line
; Set email to email
^!IfAppOpen "*Outlook Express - Main Identity" open
^!Shell "C:\Program Files\Outlook Express\msimn.exe"
^!FocusApp "*Outlook Express - Main Identity"
; Create a new message
; Write field to and subject
^!Keyboard #^%email%# TAB TAB TAB #^%subject%# TAB
; Write text in the body of message
^!Keyboard #You said:# ENTER ENTER
^!Keyboard #^%comment%# ENTER ENTER
Co-conspirator @ http://www.htmlfixit.com
----- Original Message -----
From: "Manuel123" <manuel123@...>
Sent: Saturday, March 01, 2003 7:50 PM
Subject: Re: [Clip] Is it possible to email from a text file with a clip ...
> "Don Passenger" <dpasseng@...>
> >^!FocusApp "Inbox - Outlook Express - Main Identity"
> >and it worked to shift focus now.
- Don Passenger wrote:
>Okay, I changed:Don,
>^!FocusApp Outlook Express
>^!FocusApp "Inbox - Outlook Express - Main Identity"
>and it worked to shift focus now.
^!FocusApp *Outlook Express*
- hsavage wrote:
>Don Passenger wrote:Don,
>>Okay, I changed:
>>^!FocusApp Outlook Express
>>^!FocusApp "Inbox - Outlook Express - Main Identity"
>>and it worked to shift focus now.
>^!FocusApp *Outlook Express*
I sent before I saw the next message, try it without the quotes and a
single asterisk on the left.
^!FocusApp *Outlook Express
- Hi Don,
>I get mail in like this, several in one text file:<snipped>
>Subject: Test message
>Comment: another test message
>I want to be able to highlight a message and be emailing that person in my'nuther approach that I formerly tinkered with
>email client or otherwise. Can it be done?
If, in Ntab you have a doc of text where the very top line is like next:
dave@...;Re: Test message;+
NoteTab doc text is from here on in the doc
; strips top semi colon delimited line into variable
; then sends Ntab doc to email client, all is ready 2 send
^!Replace "^$GetSelection$" >> "" ISH
; --end of clip--
Or, I've a clip-Perl combo that, using Perl, sends the email directly from NoteTab (no need for any email client). It works, but maybe currently (when use it) need more manual editing than what's desirable. As soon as I learn more about Perl's shift function, I'm going to directly pass more parameters into Perl from NoteTab. If U interested, let me know, I'll post it on the Scripts list.
- Hi Don,
> Jody mentioned something the other day about focus switchesWhen dealing with other programs (and in some cases in NoteTab)
> being tightened down. Is there a setting somewhere I need to
> loosen up?
you need to know when a window gets focus before you pass keyboard
shortcuts on to it or whatever you might be doing.
You can use a testing statement while looping in those cases.
^!IfAppOpen Eudora* Next else Skip_-1
Here is an example of using NetCaptor logging in using another method:
^!IfSame "^$GetAppTitle$" "NetCaptor User Center - NetCaptor" Next else Skip_-1
Sometimes, Titlebars want to be picky about being read it seems.
Perhaps there are some hidden characters and yet another method
can be used. Actually, the method is the same, just "tighter"
^!IfSame "^$StrCopy("^$GetAppTitle$";1;14)$ "NetCaptor User" Next else Skip_-1
In the case above you are restricting the text checked to
eliminate any unseen characters if they are there; perhaps a
space. I don't know if it can happen; I only know that I've had
to do that in a dozen or so windows in the past. Likewise, you
can use StrCopyRight or others to check.
Subscribe, UnSubscribe, Options