🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by SatCP Wed, 13 Oct 2004 22:29
[Dialog] Simple scripting question
#156995
Author: 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
Re: [Dialog] Simple scripting question
#157338
Author: ZER0
Date: Fri, 22 Oct 2004 10:12
32 lines
2095 bytes
On Wed, 13 Oct 2004 22:29:05 GMT, SatCP wrote:
> 
> 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.

Me too.. 

> But what object contains the message?

.. and unfortunately, Dialog doesn't expose any custom object and class for
access directly to messages information.

So, you don't have any object where you can make a call like this:

>   if ???????.Lines.Count < 300 then

You need to get the lines number from GUI.
So, copy the current row selected in articlelv on clipboard, and find in
this string the lines number. After, convert the string into integer and
make your condition.

Yeah, I know, this is not great; but it's the only way.

I hope it helps you, and sorry for my english.

-- 
ZER0://coder.gfxer.web-designer/

~ You don't have to be crazy to be a webmaster. But it helps.
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