🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
13 messages
13 total messages Started by Scott Marquardt Wed, 27 Oct 2004 23:07
[Dialog] Script for sending string and Message-ID to browser?
#157571
Author: Scott Marquardt
Date: Wed, 27 Oct 2004 23:07
33 lines
2442 bytes
I'm wanting to send an URL to Internet Explorer and navigate accordingly.
The URL I'd like to send would be a string, plus the message-id of the
currently selected message:

     mid <DNnn7.18524$151.1610065@bgtnsc05-news.ops.worldnet.att.net>

The reason this string would be effective for my purposes is that I use a
search shortcut method in IE for retrieving google archived messages using
message-id headers. The following is a .reg export that shows the values
that make this effective (if you save this as a .reg file and merge it into
your registry, typing "mid " in the address bar, followed by a message-id
value, will lead to the archive copy at google).

-<snip>-

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\mid]
@="http://groups.google.com/groups?oe=UTF-8&as_umsgid=%s&lr=&num=30&hl=en"
" "="+"
"+"="%2B"
"%"="%25"
"&"="%26"

-<snip>-

Does anyone with scripting experience in Dialog have a clue how to open a
new IE window and navigate it to a string + header value for the selected
message in Dialog?

-- 

Scott
Re: [Dialog] Script for sending string and Message-ID to browser?
#157575
Author: Scott Marquardt
Date: Wed, 27 Oct 2004 23:37
47 lines
2837 bytes
Top-post to myself: Aaaargh! It is SO frustrating that I can double-click
the message-id below in Dialog and be able to select to search for it at
google, but if I whack "H" to see the headers and try on the message-id of
the message itself, I can't.   Aaaargh!

</Howard Dean quoting>


Scott Marquardt opined thusly on Oct 27:
> I'm wanting to send an URL to Internet Explorer and navigate accordingly.
> The URL I'd like to send would be a string, plus the message-id of the
> currently selected message:
> 
>      mid <DNnn7.18524$151.1610065@bgtnsc05-news.ops.worldnet.att.net>
> 
> The reason this string would be effective for my purposes is that I use a
> search shortcut method in IE for retrieving google archived messages using
> message-id headers. The following is a .reg export that shows the values
> that make this effective (if you save this as a .reg file and merge it into
> your registry, typing "mid " in the address bar, followed by a message-id
> value, will lead to the archive copy at google).
> 
> -<snip>-
> 
> Windows Registry Editor Version 5.00
> 
> [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\mid]
> @="http://groups.google.com/groups?oe=UTF-8&as_umsgid=%s&lr=&num=30&hl=en"
> " "="+"
> "+"="%2B"
> "%"="%25"
> "&"="%26"
> 
> -<snip>-
> 
> Does anyone with scripting experience in Dialog have a clue how to open a
> new IE window and navigate it to a string + header value for the selected
> message in Dialog?
> 
> -- 
> 
> Scott


-- 

Scott
Re: [Dialog] Script for sending string and Message-ID to browser?
#157622
Author: MLC
Date: Fri, 29 Oct 2004 09:02
119 lines
4423 bytes
_Scott Marquardt_, giovedì 28/ott/2004:

> I'm wanting to send an URL to Internet Explorer and navigate accordingly.
> The URL I'd like to send would be a string, plus the message-id of the
> currently selected message:
> 
>      mid <DNnn7.18524$151.1610065@bgtnsc05-news.ops.worldnet.att.net>
> 
> The reason this string would be effective for my purposes is that I use a
> search shortcut method in IE for retrieving google archived messages using
> message-id headers. The following is a .reg export that shows the values
> that make this effective (if you save this as a .reg file and merge it into
> your registry, typing "mid " in the address bar, followed by a message-id
> value, will lead to the archive copy at google).
> 
> -<snip>-
> 
> Windows Registry Editor Version 5.00
> 
> [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\mid]
> @="http://groups.google.com/groups?oe=UTF-8&as_umsgid=%s&lr=&num=30&hl=en"
> " "="+"
> "+"="%2B"
> "%"="%25"
> "&"="%26"
> 
> -<snip>-
> 
> Does anyone with scripting experience in Dialog have a clue how to open a
> new IE window and navigate it to a string + header value for the selected
> message in Dialog?

Hi Scott,
I didn't add that "mid" key in my registry, however I've written a script
that opens your default browser in the Google page for the Message-ID of the
selected message in Dialog. I hope it can fit your wishes :-)


Program GoogleMid;
uses Forms, StdCtrls;

const
 MsgIDHeader = 'Message-ID: ';
 query = 'http://groups.google.com/groups?oe=UTF-8&lr=&num=30&hl=en&as_umsgid=';
  
var
 myForm: TForm;
 myMemo: TMemo;
 MsgID, url: string;
 AreHidden: boolean;

Procedure GetMsgBody(var LocMemo: tMemo);
begin
 LocMemo.Clear;
 ADo('ArticlePane');
 ADo('SelectAll');
 Ado('Copy');
 LocMemo.PasteFromClipboard;
end;

Function GetMsgID(var LocMemo: tMemo): string;
var 
 i: integer;
begin
 i := 0;
 result := '';
 while (i < LocMemo.Lines.count-1) and (Result = '') do
 begin
  if Pos(MsgIDHeader,LocMemo.lines.Strings[i]) = 1 then
   Result := LocMemo.lines.Strings[i]
  else
    i := i+1;
 end; //while
 result := copy(result, length(MsgIDHeader)+1, Length(result));
end;

Function AreHeadersHidden(var LocMemo: tMemo): boolean;
var i: integer;
begin
 result := true;
 if LocMemo.Lines.count > 10 then
 begin
  i := 0;
  while (i < LocMemo.Lines.count -1) and result do
  begin
    i := i+1;
    result := Pos('Newsgroups: ', LocMemo.Lines.strings[i])=0;
  end; //while
 end; //if
end;

Procedure BuildmyContainers;
begin
 myMemo := tMemo.Create(myForm);
 myMemo.Parent := myForm;
 myMemo.Width := Application.Mainform.width;
end;

Begin
  myForm := tForm.Create(nil);
  lockdisplay;
  try
   BuildmyContainers;
   GetMsgBody(myMemo);
   AreHidden := AreHeadersHidden(myMemo);
   if AreHidden then ADo('ShowHeaders');
   GetMsgBody(myMemo);
   MsgID := GetMsgID(myMemo);
   if AreHidden then Ado('ShowHeaders');
  finally
   myForm.free;
  end;
  url := query + MsgID;
  FileExecute(0,url,'','','',0,0);
  unlockdisplay;
End.

-- 
Maria Luisa C - 29/10/2004 10.52.10
Re: [Dialog] Script for sending string and Message-ID to browser?
#157661
Author: Jarrod Cifer
Date: Sat, 30 Oct 2004 08:26
19 lines
2310 bytes
Scott Marquardt, upon reaching nirvana, postulated:

> The reason this string would be effective for my purposes is that I use a
> search shortcut method in IE for retrieving google archived messages using
> message-id headers.

Just double-checking here: You have seen "Search at Google" in the edit
menu? In the resulting dialog window, if you tap on the drop down fields,
you get the relevant information for the currently active message. I'm
supposing you're trying to save the extra click with your method(If you
assign a keyboard shortcut to the search google option), but considering
just how many functions Dialog has, it could be possible you missed this
one.

-- 
J. Cifer
40tude Dialog FAQ: http://snurl.com/4um8
40tude Dialog script library: http://snurl.com/4umc
40tude Dialog links: http://snurl.com/4umg
Re: [Dialog] Script for sending string and Message-ID to browser?
#157866
Author: Scott Marquardt
Date: Wed, 03 Nov 2004 16:02
24 lines
2451 bytes
Jarrod Cifer opined thusly on Oct 30:
> Scott Marquardt, upon reaching nirvana, postulated:
> 
>> The reason this string would be effective for my purposes is that I use a
>> search shortcut method in IE for retrieving google archived messages using
>> message-id headers.
> 
> Just double-checking here: You have seen "Search at Google" in the edit
> menu? In the resulting dialog window, if you tap on the drop down fields,
> you get the relevant information for the currently active message. I'm
> supposing you're trying to save the extra click with your method(If you
> assign a keyboard shortcut to the search google option), but considering
> just how many functions Dialog has, it could be possible you missed this
> one.

I did discover that a while back, but geez -- the dropdowns drive me nuts.
I hate mousing when I don't have to, so in this case it's shift+tab
shift+tab shift+tab Enter. Yuck! My kingdom for a short&cut key for this!

I'll try Maria's solution. Thanks, though.

-- 

Scott
Re: [Dialog] Script for sending string and Message-ID to browser?
#157867
Author: Scott Marquardt
Date: Wed, 03 Nov 2004 16:05
18 lines
1960 bytes
MLC opined thusly on Oct 29:
> _Scott Marquardt_, giovedì 28/ott/2004:
> 
>> I'm wanting to send an URL to Internet Explorer and navigate accordingly.

> Hi Scott,
> I didn't add that "mid" key in my registry, however I've written a script
> that opens your default browser in the Google page for the Message-ID of the
> selected message in Dialog. I hope it can fit your wishes :-)

Absolutely awesome. Park that sucker on the wiki! And while you're at it,
cough up any more good stuff you're hiding.

Consider yourself thanked.    :-)

--

Scott
Re: [Dialog] Script for sending string and Message-ID to browser?
#157880
Author: Jo'Asia
Date: Wed, 03 Nov 2004 18:59
15 lines
2144 bytes
Scott Marquardt wrote:

> I did discover that a while back, but geez -- the dropdowns drive me nuts.
> I hate mousing when I don't have to, so in this case it's shift+tab
> shift+tab shift+tab Enter. Yuck! My kingdom for a short&cut key for this!

Settings -> Configure buttons/shortcuts... :)

Jo'Asia

-- 
 __.-=-.  -< Joanna Slupek >----------------------< http://esensja.pl/ >-
  --<()>  -< joasia @ hell . pl >------< http://bujold.fantastyka.net/ >-
 .__.'|   -< If you're gonna have delusions, you may as well go for
             the really satisfying ones.      {Babylon 5, Marcus Cole} >-
Re: [Dialog] Script for sending string and Message-ID to browser?
#157903
Author: Scott Marquardt
Date: Thu, 04 Nov 2004 01:46
17 lines
1969 bytes
Jo'Asia opined thusly on Nov 3:
> Scott Marquardt wrote:
> 
>> I did discover that a while back, but geez -- the dropdowns drive me nuts.
>> I hate mousing when I don't have to, so in this case it's shift+tab
>> shift+tab shift+tab Enter. Yuck! My kingdom for a short&cut key for this!
> 
> Settings -> Configure buttons/shortcuts... :)

Doesn't help. But you've helped me see that actually, what I meant was
Alt-E/E, then the rest. So shortcutting would only save me a menu selection
action.


-- 

Scott
Re: [Dialog] Script for sending string and Message-ID to browser?
#157921
Author: MLC
Date: Thu, 04 Nov 2004 10:36
23 lines
2345 bytes
_Scott Marquardt_, mercoledì 03/nov/2004:

> MLC opined thusly on Oct 29:
>> _Scott Marquardt_, giovedì 28/ott/2004:
>> 
>>> I'm wanting to send an URL to Internet Explorer and navigate accordingly.
> 
>> Hi Scott,
>> I didn't add that "mid" key in my registry, however I've written a script
>> that opens your default browser in the Google page for the Message-ID of the
>> selected message in Dialog. I hope it can fit your wishes :-)
> 
> Absolutely awesome. Park that sucker on the wiki! And while you're at it,
> cough up any more good stuff you're hiding.
> 
> Consider yourself thanked.    :-)

You're welcome :-)
I don't think however that it is wiki-worth because Dialog has already the
"Search at Google" feature, as Jarrod correctly said. It's just to spare
some clicks for lazy people... ;-)
-- 
Maria Luisa C - 04/11/2004 11.31.15
Re: [Dialog] Script for sending string and Message-ID to browser?
#157931
Author: Scott Marquardt
Date: Thu, 04 Nov 2004 19:05
31 lines
2535 bytes
MLC opined thusly on Nov 4:
> _Scott Marquardt_, mercoledì 03/nov/2004:
> 
>> MLC opined thusly on Oct 29:
>>> _Scott Marquardt_, giovedì 28/ott/2004:
>>> 
>>>> I'm wanting to send an URL to Internet Explorer and navigate accordingly.
>> 
>>> Hi Scott,
>>> I didn't add that "mid" key in my registry, however I've written a script
>>> that opens your default browser in the Google page for the Message-ID of the
>>> selected message in Dialog. I hope it can fit your wishes :-)
>> 
>> Absolutely awesome. Park that sucker on the wiki! And while you're at it,
>> cough up any more good stuff you're hiding.
>> 
>> Consider yourself thanked.    :-)
> 
> You're welcome :-)
> I don't think however that it is wiki-worth because Dialog has already the
> "Search at Google" feature, as Jarrod correctly said. It's just to spare
> some clicks for lazy people... ;-)

Ah, but it also exposes some methods that may be useful to others. Never
presume that your code deserves no ode.

Nor, for that matter, that your interlocutors are worthy poets.  ;-)

-- 

Scott
Re: [Dialog] Script for sending string and Message-ID to browser?
#159617
Author: Scott Marquardt
Date: Thu, 23 Dec 2004 00:14
50 lines
2744 bytes
MLC opined thusly on Oct 29:
> _Scott Marquardt_, giovedì 28/ott/2004:

>> I'm wanting to send an URL to Internet Explorer and navigate accordingly.
>> The URL I'd like to send would be a string, plus the message-id of the
>> currently selected message:

[...]

> I didn't add that "mid" key in my registry, however I've written a script
> that opens your default browser in the Google page for the Message-ID of the
> selected message in Dialog. I hope it can fit your wishes :-)

With changes at google, this needed to be modified. I think. Anyway, it
works now whereas it had stopped working when they flipped to their new
stuff -- which sux.

Two changes posted below.
 
 [...]
 
> const
>  MsgIDHeader = 'Message-ID: ';
>  query = 'http://groups.google.com/groups?oe=UTF-8&lr=&num=30&hl=en&as_umsgid=';

change query to:        'http://groups-beta.google.com/groups?selm='

[...]

>    if AreHidden then Ado('ShowHeaders');
>   finally
>    myForm.free;
>   end;

add this line:

MsgID := Copy(MsgID, 2, Length(MsgID) - 2);

>   url := query + MsgID;
>   FileExecute(0,url,'','','',0,0);
>   unlockdisplay;
> End.

The pointy brackets are no longer recognized as part of the message-id, the
RFC be damned. On the other hand, google's recognizing references-based
threading now. Whatever -- I still say the new presentation sux.

-- 

Scott
Re: [Dialog] Script for sending string and Message-ID to browser?
#159624
Author: /betty/
Date: Thu, 23 Dec 2004 03:30
22 lines
2183 bytes
On Wed, 22 Dec 2004 18:14:59 -0600, Scott Marquardt used 50 lines to
assert:

> 
> With changes at google, this needed to be modified. I think. Anyway, it
> works now whereas it had stopped working when they flipped to their new
> stuff -- which sux.
> 

I presume you're aware that Gurgle played the wasn't broke so fix it
until it is game on their own system in their changeover phase as acked
by many people who reported chaotic results over the weeks in trying to
do normal launches of MIDs from clients and even Web browser msg
locations?

They have apparently bought it back to reality now because the launch
complaints from ardent Gurglers seem to have dissipated and the moanings
have been refocused toward cosmetics appraisals like "The new I/F sux"
mind bogglers.

-- 
/betty/ [2004-12-23 14:08:39]
Re: [Dialog] Script for sending string and Message-ID to browser?
#159706
Author: Scott Marquardt
Date: Sat, 25 Dec 2004 07:15
39 lines
3301 bytes
/betty/ opined thusly on Dec 22:
> On Wed, 22 Dec 2004 18:14:59 -0600, Scott Marquardt used 50 lines to
> assert:
> 
>> 
>> With changes at google, this needed to be modified. I think. Anyway, it
>> works now whereas it had stopped working when they flipped to their new
>> stuff -- which sux.
>> 
> 
> I presume you're aware that Gurgle played the wasn't broke so fix it
> until it is game on their own system in their changeover phase as acked
> by many people who reported chaotic results over the weeks in trying to
> do normal launches of MIDs from clients and even Web browser msg
> locations?

I can grok that para. I really can.     ;-)
 
> They have apparently bought it back to reality now because the launch
> complaints from ardent Gurglers seem to have dissipated and the moanings
> have been refocused toward cosmetics appraisals like "The new I/F sux"
> mind bogglers.

They haven't brought it back. The original script doesn't work. 

I'm mystified as can be by google's "gmailification" of the archives.
Usenet isn't gmail. Usenet isn't google. Usenet is usenet, and the previous
text presentation was just dandy. Among other things, I miss the
alternating colors -- something deja didn't do.

I *do* like the fact that they're threading on references now. That's huge.
Their previous method -- threading on subject alone -- was lame, lame,
lame. But I think they inherited that from deja (I honestly can't remember
for sure).

-- 

Scott, waiting for the sweet potatoes to cool down before droppin' 'em in
the mixer for the pies.     ;-)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads