🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #163417

[Dialog] Open article with single-click

#163417
From: Stephen Hust
Date: Thu, 03 Mar 2005 20:21
55 lines
2520 bytes
I'm trying to get Dialog to work the way I want it to, and it's
not being very cooperative.  I'd like it to download and display
an article with a single click of the left mouse button, the way
Xnews does, rather than a double click. 

I have compiled and saved the following script (which I thought
was supposed to do what I wanted) according to the instructions on
the 40tude Dialog Wiki website (link below), but it doesn't seem
to do anything.  If I click on a name or subject in the articles
list, nothing happens.  Scripting is enabled (little box around
the icon).  Clicking on "Reload Scripts" doesn't change anything;
neither does shutting Dialog down and restarting. 

I don't know what I've overlooked.

If I run the script in the Scripting window, it says "Successfully
compiled - Executing ... - Successfully executed." 

In the main window, if I click on the subject or name of an
article, the following appears in the Log window (set to level 0): 

FDATA: Extracting body of GroupKey: 9846 ArticleKey: 21
FDATA: Item not found...

I click on another name in the same thread:

FDATA: Writing itemcount 24
FDATA: Closing 9846
FDATA: Opening 9846
FDATA: Reading itemcount 24
FDATA: Extracting body of GroupKey: 9846 ArticleKey: 17
FDATA: Item not found...

Double-clicking on the same subject or name downloads and displays
the article correctly. 

This is the script:

| program ARTICLELV_WM_LBUTTONUP;
|
| procedure OnWMessage(var Msg:TMessage;var handled:boolean);
|
| begin
|   ADo('GetSelectedMessageBodies');
| end;
|
| begin
| end.

<http://www.40tude.com/dialog/wiki/index.php/ScriptDownloadOnSingleClick>

-- 
Steve

My e-mail address works as is.
Technical Details
Message-ID: <Xns960ED96B49DA1shNOSPAMa1net@127.0.0.1>
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.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <Xns960ED96B49DA1shNOSPAMa1net@127.0.0.1>
Subject: [Dialog] Open article with single-click
Date: Thu, 03 Mar 2005 20:21:53 +0000
From: Stephen Hust <shNOSPAM@a1.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.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 55
X-Trace: individual.net DHtIRU6tqotDZuIDjPRjyAFLlV/6mY8kw00O+EMlPN6m3bcIUh
User-Agent: Xnews/5.04.25
X-Converter: MorVer Version 1.0.305