🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #218589

Re: 40tude Dialog: Sorting on watched flag. Need help with script.

#218589
From: VanguardLH
Date: Sat, 05 Apr 2008 17:44
38 lines
2955 bytes
VanguardLH wrote:

> So other than when ADo() is used to change focus and then use 
> PostKey(), it seems to get the keystrokes in a newly opened window 
> that I must either:
> 
> - Use ADoLater() that will accept what PostKey() buffered up.
> - Use PostKey() first to buffer up the keystrokes and then use ADo() 
> to open the window.
> 
> I'll see what happens if I do the 2nd scheme.  I can't find any 
> documentation on ADoLater() to know how to use it.  

Okay, I moved the ADo() command to *after* the PostKey() commands and it
works better (but not yet perfect).  So now I have:

   ...
   lockdisplay;             
   ADo('Watch');
   <PostKey commands here>
   ADo('MessageProperties');
   unlockdisplay;
   ...

The dialog pops up very quickly (almost can't be seen unless I run the
script many times).  The watch flag gets added and the score gets set to
9999.  So I'm almost there.

The problem now is that the 'if' command doesn't work.  When I use the
script on a message (that is not watched and not scored), the script
sees the watch flag got set so it runs the 'then' clause of the 'if'
command to set the scoring value to 9999.  However, when I run the
script a 2nd time (to clear the watch flag and try to zero out the
score), the watch flag comes off but AEnabled('Watch') is still
returning 'true' so the value gets set to 9999 (what it is before)
instead of zero.
 
So there is still some more playing around with the script to do.
Technical Details
Message-ID: <ft8dp0$r5s$1@registered.motzarella.org>
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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feeder.erje.net!news.motzarella.org!motzarella.org!not-for-mail
References: <ft6i1v$clo$1@registered.motzarella.org> <6aod2sok6yhy.1i6rae0xm67m$.dlg@40tude.net> <c8ydnV0pwK90K2ranZ2dnUVZ_v-hnZ2d@comcast.com>

Show Full Headers
Complete Article Headers
Message-ID: <ft8dp0$r5s$1@registered.motzarella.org>
Subject: Re: 40tude Dialog: Sorting on watched flag. Need help with script.
Date: Sat, 5 Apr 2008 12:44:07 -0500
From: VanguardLH <V@nguard.LH>
References: <ft6i1v$clo$1@registered.motzarella.org> <6aod2sok6yhy.1i6rae0xm67m$.dlg@40tude.net> <c8ydnV0pwK90K2ranZ2dnUVZ_v-hnZ2d@comcast.com>
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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feeder.erje.net!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 38
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: feeder.motzarella.org
 U2FsdGVkX18Jf1F8UaaK7ZGtMfCHBiEte6HZurL6EjXWCod8vXJ4Wh6t8aW8Fv03jk4ZQpQjl52sPzzPkK9yzTEOhc3tlfIn0BBb7bo0INwcVyz83ptaXHWbXf2oBrsQ7ThMMF2/T22msbDPsj51+A==
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Sat, 5 Apr 2008 17:44:00 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX1+w2AHoO50dRe+Z3sAiyseQY5Js3cmVs/szQYFNjtukUQ==
Cancel-Lock: sha1:aNeyk+9wRc6gPSGx1m66QO6seXk=
User-Agent: 40tude_Dialog/2.0.15.1