Article View: news.software.readers
Article #173668[Dialog] Script ExpandAndCollapse modification - help
From: Marsjanin
Date: Sun, 18 Sep 2005 13:01
Date: Sun, 18 Sep 2005 13:01
56 lines
3129 bytes
3129 bytes
Hello.
"My" script ExpandAndCollapse, based on Doktor's ExpandGetAndCollapse,
returns here as boomerang. :-) Now I changed GoToPreviousMarker to
GoToNextMarker and it stoped switching two messages across. Works fine
- ALMOST fine. The only problem is now, if I scroll down the message
with Space key, the script is activated and message is redisplayed
from the beginning, and so on. Other keys works OK, also when the
whole message is displayed on one screen, it works fine with Space.
But I want to view it with space. The script should be activated just
when new message is loaded into BodyEdit. I think I need some "if"
action more, that return information, is there end of message? Or, is
there text scrolling, or write from beginning? Huh, I got no idea, how
to do it. If anyone can help me, please do. :-]
The script (now hooked for ArticleLv - nevermind) looks now:
program ARTICLELV_WM_KEYUP;
procedure ExpandAndCollapse ();
begin
lockdisplay;
ADo ('ClearMarkers')
ADo ('AddMarker');
ADo ('CollapseAllThreads');
ADo ('ExpandThread');
ADo ('GoToNextMarker');
unlockdisplay;
beep();
end;
procedure OnWMessage (var Msg : TMessage; var handled : boolean);
begin
// key codes
if ((Msg.WParam = 32) or (Msg.WParam = 38) or (Msg.WParam = 40) or (Msg.WParam = 85) or (Msg.WParam = 68))
// Space, U, D, CrsrUp, CrsrDn
then ExpandAndCollapse ();
handled := false;
end;
begin
end.
--
Pozdrawiam, Marsjanin. WWW : marsjanin.tk
ATI Rage IIC 4 MB RAM AGP - niby lepiej, ale gdzie wąskie gardło DivX?
Nic nie gra. Cudowna cisza... :-]
Technical Details
Message-ID:
<ylzbgos4qysy$.dlg@marsjanin.tk>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!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!news.nask.pl!newsfeed.gazeta.pl!news.gazeta.pl!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <ylzbgos4qysy$.dlg@marsjanin.tk>
Subject: [Dialog] Script ExpandAndCollapse modification - help
Date: Sun, 18 Sep 2005 15:01:08 +0200
From: Marsjanin <09.2005.usenet@marsjanin.tk>
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!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!news.nask.pl!newsfeed.gazeta.pl!news.gazeta.pl!not-for-mail
Newsgroups: news.software.readers
Organization: H&D
Lines: 56
Reply-To: 09.2005.usenet@marsjanin.tk
NNTP-Posting-Host: ddb76.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-2"
Content-Transfer-Encoding: 8bit
X-Trace: inews.gazeta.pl 1127048645 10154 83.23.79.76 (18 Sep 2005 13:04:05
GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Sun, 18 Sep 2005 13:04:05 +0000 (UTC)
X-Face: "">i,YT<@)(agU"+'B<v4/]QqK$B%(OVp}}K\BYIX70s/VQ(X+<'v`bDa|I'#Xft~#Hdmcx
qH/hXeo\`6/B; eU*ZPo.WK6s%g`2P39L#Mu(t78E~l)M;
1!H_T4rXS{l10<gw]4`>`IxLBlM5PSon- ^Tq/]ivdvM[m\&PER\BAT{=Y!lpJ@Gh4R0p;
[^5BH(b/O%!}kb#32C
X-User: ninajsram
User-Agent: 40tude_Dialog/2.0.15.1pl Hamster/2.0.7.0