🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #264830

Re: Newsreaders eh?

#264830
From: Bernd Rose
Date: Sun, 18 Apr 2021 11:04
69 lines
3710 bytes
On Sun, 18th Apr 2021 10:53:35 +0100, Jim S wrote:

[40tude Dialog: 2 Scripts to plonk without confirmation dialog] 
> I understand the scripts, but not this :
> First stuffing the keyboard buffer with Alt+o (to get the 
> Scoring&Actions
> window closed, later on) may seem counter-intuitive. But the scripts 
> work only this way round.

This is just an explanation of the inner workings of the scripts. You
can safely ignore this.

The following shows a complete walk-through for creating the scripts and
assigning the shortcuts. The whole process can, IMHO, be finished in 
less than 5 minutes.

1) Open the Script editor: menu Settings -> Scripting -> Scripting...
2) Select the "Custom scripts" tab on the left side of the Script editor
3) Choose menu File -> New script...  and enter DoPlonk as name.
   Now a new entry DoPlonk.ds is created in the list of "Custom scripts"
   This entry is pre-selected.
4) In the script body window on the right side you'll see 3 lines of code.
5) Overwrite these 3 lines with:

Program DoPlonk;
Begin
  PostKey(79, false, true, false, false, false, false, false, false);
  ADo('AddPlonkFilter');
End.

6) Save the script: menu File -> Save
7) Compile the script: menu Script -> Compile

8) Choose menu File -> New script...  again and enter DoSubjPlonk as name.
9) Again overwrite the 3 standard lines of script code. This time with:

Program DoSubjPlonk;
Begin
  PostKey(79, false, true, false, false, false, false, false, false);
  ADo('AddSubjectPlonkFilter');
End.

10) Save the script: menu File -> Save
11) Compile the script: menu Script -> Compile

12) Close the Script editor window.

13) Open the Shortcut editor: menu Settings -> Configure buttons/shortcuts
14) Choose "Scripts" (the last entry in the Categories list on the left side
15) Select DoPlonk from the Commands list on the right side
16) Click in the field beside the label "Shortcut*" 
17) Hit whatever keyboard shortcut you wish to assign to DoPlonk
18) Select DoSubjPlonk from the Commands list
19) Click again in the field beside the label "Shortcut*" 
20) Hit whatever keyboard shortcut you wish to assign to DoSubjPlonk
21) Close the Shortcut editor

When you try to assign a shortcut to DoPlonk or DoSubjPlonk, which is 
already in use by another command, you can decide to either assign the
shortcut, anyway. (Overwrite? -> YES.) This way, the former command will
loose that shortcut and DoPlonk or DoSubjPlonk will be executed by this
shortcut from now on. 

Or you can cancel the assignment of that shortcut. (Overwrite? -> NO.)
This way, you'll be back in the field "Shortcut*" and can try to assign
another one.

HTH.
Bernd
Technical Details
Message-ID: <12pj6jxdq5dve.dlg@b.rose.tmpbox.news.arcor.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <gkfgs5nfgug4$.1q24cwbv2tx3l.dlg@40tude.net> <17ztypxu0bb1p$.dlg@b.rose.tmpbox.news.arcor.de> <MPG.3ae611f563b51ec39897a1@news.virginmedia.com>

Show Full Headers
Complete Article Headers
Message-ID: <12pj6jxdq5dve.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: Newsreaders eh?
Date: Sun, 18 Apr 2021 13:04:05 +0200
From: Bernd Rose <b.rose.tmpbox@arcor.de>
References: <gkfgs5nfgug4$.1q24cwbv2tx3l.dlg@40tude.net> <17ztypxu0bb1p$.dlg@b.rose.tmpbox.news.arcor.de> <MPG.3ae611f563b51ec39897a1@news.virginmedia.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Injection-Info: solani.org; logging-data="24863"; mail-complaints-to="abuse@news.solani.org"
X-User-Id: eJwNy8EBwCAIA8CVEAiRcRDL/iPU/x0sVjQ9EI7BlOiOvKbAVd6USWSVkqqWLmbnQOMTp3BlcZV82NLe5LBfwXn6jE9t7x+DoBiy
Cancel-Lock: sha1:ZCKTfhsAxDs/wHmDbny3qJxwe1Q=
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.41 (46f8a7a0.132.342)
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0