Article View: news.software.readers
Article #218581Re: 40tude Dialog: Sorting on watched flag. Need help with script.
From: Rom
Date: Sat, 05 Apr 2008 14:55
Date: Sat, 05 Apr 2008 14:55
81 lines
3803 bytes
3803 bytes
On Fri, 4 Apr 2008 19:44:54 -0500, VanguardLH wrote:
> The sort parameters for the message list do not include flags, like the
> watch flag. So I figured to up the score of a message when the watched
> flag was set on it.
>
> No, I do not want to use a "!watched <criteria> <parm>" line in the
> scroing rules. That marks a message as watched if the criteria is met.
> That is the wrong way around. I don't want to watch all messages, for
> example, that I post. Instead I want to decide which threads to watch
> (I have Dialog configured to not just flag on a subthread but instead on
> the whole thread). I want to set a score for the message based on
> whether or not *I* set watch flag. Since I can sort on the message's
> score value, I want to assign a high score to any thread where I
> *choose* to watch it. If I clear the watch flag, the score should be
> low or zero to get it out of the top of the sorted list (i.e., it isn't
> being watched anymore).
I looked through the old messages I still have for this group and
found a script by MLC that will do what you want. All I've done is
added Watch to it and tested it with a keyboard shortcut, but you can
also add a custom/own button in Dialog.
Double-click <dialog.chm::/scripting.htm>, which should open the
Scripting page in Dialog's Help, then read the second paragraph.
The icons added to ...\Scripts\Icons should be 20 x 20 bitmaps.
How this works is use a keyboard shortcut or button, enter the score,
say, 9999, and it will add the Watch flag too. Use the keyboard
shortcut or button again, enter 0 (zero) to unwatch and reset the
score.
It's from this message (I added the Watch to it):
From: MLC
Newsgroups: news.software.readers
Subject: Re: [Dialog] Adjust score for subject up?
Date: Sat, 10 Jan 2004 23:04:06 +0100
Message-ID: <y96aaf2e3n7t$.dlg@ID-187316.user.uni-berlin.de>
Program PutScore;
uses
Forms,
StdCtrls;
var
s:string;
myForm : TForm;
myMemo : TMemo;
Begin
s:='';
myForm:=TForm.Create(nil);
myForm.Width:=80;
myForm.Height:=40;
myMemo:=TMemo.Create(myForm);
myMemo.Parent:=myForm;
myMemo.Width:=50;
s:=Readln('How many?');
if s='' then exit;
myMemo.Text:=s;
myMemo.SelectAll;
myMemo.CopyToClipboard;
PostKey(77, false, true, false, false, false, false, false, false);
//the above is 80 for the Italian version;
PostKey(9, false, false, false, false, false, false, false, false);
PostKey(86, false, false, true, false, false, false, false, false);
PostKey(13, false, false, false, false, false, false, false, false);
ADo('MessageProperties');
myForm.free;
ADo('Watch');
End.
Save and compile with Ctr-F9 (not with the green triangles), then
assign a
hotkey.
--
Rom
Technical Details
Message-ID:
<6aod2sok6yhy.1i6rae0xm67m$.dlg@40tude.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<ft6i1v$clo$1@registered.motzarella.org>Show Full Headers
Complete Article Headers
Message-ID: <6aod2sok6yhy.1i6rae0xm67m$.dlg@40tude.net> Subject: Re: 40tude Dialog: Sorting on watched flag. Need help with script. Date: Sun, 6 Apr 2008 01:55:35 +1100 From: Rom <-@-.invalid> References: <ft6i1v$clo$1@registered.motzarella.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Lines: 81 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net tEBxHI/nOxzCpoRalTwkiQF8mroO5g+96epDeSJ1oTQarvTDcR Cancel-Lock: sha1:9UHlB6cZHTP5pzKn9Xl1ODtjQ5I= User-Agent: 40tude_Dialog/2.0.15.41 Archive: no X-No-Archive: yes