Thread View: news.software.readers
3 messages
3 total messages
Started by Stephen Hust
Thu, 03 Mar 2005 20:21
[Dialog] Open article with single-click
Author: Stephen Hust
Date: Thu, 03 Mar 2005 20:21
Date: Thu, 03 Mar 2005 20:21
55 lines
2520 bytes
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.
Re: [Dialog] Open article with single-click
Author: MLC
Date: Thu, 03 Mar 2005 21:20
Date: Thu, 03 Mar 2005 21:20
28 lines
2498 bytes
2498 bytes
_Stephen Hust_, giovedì 03/mar/2005: > 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. You're right, there is an error in the description of that script in the Wiki page, as I pointed out some time ago, hoping someone was going to correct it. Since no one did it, now I've done the correction myself :-) To make it simple, delete your actual version of the script, then follow the updated Wiki description (the error was WM_LBUTTONDBLCLK instead of WM_LBUTTONUP) http://www.40tude.com/dialog/wiki/index.php/ScriptDownloadOnSingleClick -- Maria Luisa C - 03/03/2005 22.09.10
Re: [Dialog] Open article with single-click
Author: Stephen Hust
Date: Thu, 03 Mar 2005 22:12
Date: Thu, 03 Mar 2005 22:12
27 lines
1889 bytes
1889 bytes
MLC <marialuisacNOSPAM@gmail.com> wrote: > _Stephen Hust_, giovedì 03/mar/2005: >> [...] I'd like it to download and display an article with a >> single click of the left mouse button [...] >> >> I have compiled and saved the following script [...] but it >> doesn't seem to do anything. > You're right, there is an error in the description of that > script in the Wiki page, as I pointed out some time ago, hoping > someone was going to correct it. Since no one did it, now I've > done the correction myself :-) > > To make it simple, delete your actual version of the script, > then follow the updated Wiki description (the error was > WM_LBUTTONDBLCLK instead of WM_LBUTTONUP) > http://www.40tude.com/dialog/wiki/index.php/ScriptDownloadOnSingl > eClick Success at last! Thank you. (And thanks for correcting that page.) -- Steve My e-mail address works as is.
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