🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #156995

[Dialog] Simple scripting question

#156995
From: SatCP
Date: Wed, 13 Oct 2004 22:29
37 lines
2404 bytes
I've been a Gravity user for years, but I wanted to try a newsreader with
more up to date features. I tried most popular news clients, but Dialog
looked and feeled best.

Since I'm used to my customized Gravity, I'd like to immitate most of its
features in Dialog. Most of it was pretty straight-forward. Even the
scoring and actions were just a matter of writing Gravity's rules/scores in
another way. But the scripting puzzles me a bit.

I'd like to download & read messages with a single mouse click. In the
Dialog Wiki I found a simple script for that -
<http://www.40tude.com/dialog/wiki/index.php/ScriptDownloadOnSingleClick>.
It's working fine. However, in Gravity you could put a lines limit on the
single mouse click read. For example, do single mouse click read up to 300
lines. I'd like to implement the same feature in Dialog, but the Delphi
style programming is new to me.

I looked through a few other scripts, and I believe I need the .Lines.Count
property for this. Below is the script with what I believe needs to be
changed added. But what object contains the message?

program ARTICLELV_WM_LBUTTONUP;

procedure OnWMessage(var Msg:TMessage;var handled:boolean);

begin
  if ???????.Lines.Count < 300 then
    ADo('GetSelectedMessageBodies');
end;

begin
end.


Thanks in advance,

SatCP
Technical Details
Message-ID: <18usbuc06kthu$.akhnr9u362cv$.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!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!204.71.34.3!newsfeed.cwix.com!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <18usbuc06kthu$.akhnr9u362cv$.dlg@40tude.net>
Subject: [Dialog] Simple scripting question
Date: Wed, 13 Oct 2004 22:29:05 GMT
From: SatCP <satcp@pi.invalid>
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!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!204.71.34.3!newsfeed.cwix.com!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.14.1nl
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Reply-To: satcp@pi.be
Organization: SatCP Technologies
Lines: 37
NNTP-Posting-Host: 81.165.173.206
X-Complaints-To: abuse@telenet.be
X-Trace: phobos.telenet-ops.be 1097706545 81.165.173.206 (Thu,
NNTP-Posting-Date: Thu, 14 Oct 2004 00:29:05 MEST