Thread View: news.software.readers
5 messages
5 total messages
Started by Marsjanin
Sun, 04 Sep 2005 00:32
[Dialog] Script problem - where could I place (hook) it?
Author: Marsjanin
Date: Sun, 04 Sep 2005 00:32
Date: Sun, 04 Sep 2005 00:32
41 lines
2165 bytes
2165 bytes
Hello!
I've got a problem with a script. The script is:
________
procedure ExpandAndCollapse ();
begin
lockdisplay;
ADo ('AddMarker');
ADo ('CollapseAllThreads');
ADo ('ExpandThread');
ADo ('GoToPreviousMarker');
unlockdisplay;
beep();
end;
procedure OnWMessage(var Msg:TMessage;var handled:boolean);
begin
ExpandAndCollapse ();
handled := false;
end;
begin
end.
________
Originally it was hooked at ARTICLELV_WM_KEYUP and works perfectly,
but just when focus was in the msg-list panel. I want the script to
work with focus in body panel - but in BODYPANEL function WM_KEYUP
doesn't work at all. :-(
Where can I hook it?
--
Pozdrawiam, Marsjanin. WWW : marsjanin.tk
Re: [Dialog] Script problem - where could I place (hook) it?
Author: Marsjanin
Date: Tue, 06 Sep 2005 18:03
Date: Tue, 06 Sep 2005 18:03
12 lines
1828 bytes
1828 bytes
Rok 2005 - wrzesien. Dokladnie to niedziela, 4-go. Nieco po 2-ej. Nagle zza rogu Marsjanin wrzuca na news.software.readers: > procedure ExpandAndCollapse (); Hey there, nobody can help me...? :-( -- Pozdrawiam, Marsjanin. Skype : marsjanin.tk Nowy toner to czarny proszek. Uzywany - to czarne literki wtopione w papier. Gra: Neil Landstrumm : /Bedrooms and Cities/ : 5. "Minneapolis Bass Trea.. Brzmi: live, 44 kHz, 256 kbps.
Re: [Dialog] Script problem - where could I place (hook) it?
Author: Marcus Mönnig
Date: Tue, 06 Sep 2005 18:44
Date: Tue, 06 Sep 2005 18:44
21 lines
2205 bytes
2205 bytes
*Marsjanin*, 4 Sep. 05, 02:32: > Originally it was hooked at ARTICLELV_WM_KEYUP and works perfectly, > but just when focus was in the msg-list panel. I want the script to > work with focus in body panel - but in BODYPANEL function WM_KEYUP > doesn't work at all. :-( > > Where can I hook it? The mouse message is not send to the control that currently has focus, but to the control that is under the mouse cursor. BODYPANEL is the control in which the body editor (though read-only), the header panel and the message parts tree are located in. Try to hook it with BODYEDIT_WM_KEYUP. Marcus -- No replies in private e-mail, please, unless explicitly requested! Please log bug reports into Mantis: http://www.40tude.com/dialog/mantis/ Please share your scripts and tips: http://www.40tude.com/dialog/wiki/
Re: [Dialog] Script problem - where could I place (hook) it?
Author: Marsjanin
Date: Tue, 06 Sep 2005 20:28
Date: Tue, 06 Sep 2005 20:28
90 lines
4629 bytes
4629 bytes
Rok 2005 - wrzesień. Dokładnie to wtorek, 6-go. Nieco po 20-ej.
Nagle zza rogu Marcus Mönnig wrzuca na news.software.readers:
>> Originally it was hooked at ARTICLELV_WM_KEYUP and works perfectly,
>> but just when focus was in the msg-list panel. I want the script
>> to work with focus in body panel - but in BODYPANEL function
>> WM_KEYUP doesn't work at all. :-(
>> Where can I hook it?
> The mouse message is not send to the control that currently has
> focus, but to the control that is under the mouse cursor.
It's well to know it - but I use mouse rather occasionally in Dialog.
> BODYPANEL is the control in which the body editor (though
> read-only), the header panel and the message parts tree are located
> in. Try to hook it with BODYEDIT_WM_KEYUP.
This is it! I didn't try it, because I though, this is rather a window
with new post editor. :-)
But not all the problems is solved...
I got a problem also when script is hooked to ATRICLELV (and a focus
is there, of course) (script is on bottom of this post):
When I press U or D (Doktor does add few lines to the script for me,
to make the script process itself just after the some (not all) keys
pressed - we deduced key-codes with "writeln" instruction), the
message-select cursor is moving the right way, and I hear a beep
(added "beep()" instruction to have a control).
It works, when *there is a message*, to that Dialog can skip, doing
the native instruction (U, D, SPACE etc.).
When there is no message as above (e.g. U key on the first message on
top, or D key on last on bottom) Dialog running this script skips to a
previous in history (I think so), even to another group. And when key
is pressed again, to "next" in history (it swaps two messages).
How to walkaround this? Maybe I should delete all the "markers" on
beginning of the procedure? If, yes, how to do it?
I think, when current message is the first in the topic, script
doesn't change message view, when doing "collapse all threads", and
then, the "previous marker" is not the one, that should be - just the
*previous*. I think this could be this...
Thanks a lot for the answer, and sorry for my impatience in
<w35n5z4xzeiy$.dlg@marsjanin.tk> ... ;-) If it's not cancelled yet.
:-)
========
program BODYEDIT_WM_KEYUP;
procedure ExpandAndCollapse ();
begin
lockdisplay;
ADo ('ClearMarkers')
ADo ('AddMarker');
ADo ('CollapseAllThreads');
ADo ('ExpandThread');
ADo ('GoToPreviousMarker');
unlockdisplay;
beep();
end;
procedure OnWMessage (var Msg : TMessage; var handled : boolean);
begin
// kody klawiszy
if ((Msg.WParam = 32) or (Msg.WParam = 38) or (Msg.WParam = 40) or (Msg.WParam = 85) or (Msg.WParam = 68))
then ExpandAndCollapse ();
handled := false;
end;
begin
end.
========
--
Pozdrawiam, Marsjanin. MSN : marsjanin.tk@hotmail.com
A moĹĽe to nie Ranish, tylko zasilacz? :-( <http://skocz.pl/ranish>
Gra: Neil Landstrumm : /Brown By August/ : 1. "Shuttlecock"
Brzmi: Blade, 44 kHz, 320 kbps, Stereo.
Re: [Dialog] Script problem - where could I place (hook) it?
Author: Marsjanin
Date: Wed, 07 Sep 2005 19:17
Date: Wed, 07 Sep 2005 19:17
24 lines
2262 bytes
2262 bytes
Rok 2005 - wrzesień. Dokładnie to wtorek, 6-go. Nieco po 22-ej.
Nagle zza rogu Marsjanin wrzuca na news.software.readers:
> begin
> lockdisplay;
> ADo ('ClearMarkers')
^^^^^^^^^^^^
> ADo ('AddMarker');
> ADo ('CollapseAllThreads');
> ADo ('ExpandThread');
> ADo ('GoToPreviousMarker');
> unlockdisplay;
>
> beep();
> end;
F**k... I didn't noticed there is that instruction... Huh, that ruins
my theory now. :-( Any other ideas, please?
--
Pozdrawiam, Marsjanin. Tlen.pl : marsjanin-tk
ATI Rage IIC 4 MB RAM AGP - niby lepiej, ale gdzie wąskie gardło DivX?
Gra: Ricky Nelson : "Hello Mary Lou"
Brzmi: Lame 3.90 (alpha), 44 kHz, 192 kbps, Stereo.
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