🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #176897

Re: [Dialog] Scripts

#176897
From: MikeV06
Date: Wed, 30 Nov 2005 16:15
81 lines
4197 bytes
On Wed, 30 Nov 2005 09:56:35 +0100, MLC wrote:

> mercoledì 30 novembre 2005 MikeV06 ha scritto:
> 
>> I have installed the ExpireRelative script as a Custom Script
>> ExpireRelative.ds, compiled it with Ctrl-F9, and saved it. I am using the
>> English version so I kept the defaults.
> 
>> See
> 
>> http://www.40tude.com/dialog/wiki/index.php/ExpireRelative
> 
>> Now that I have installed it, how do I get it to work? ALT-O does not bring
>> up the plonk dialog. The page gives little help to someone trying to
>> install a script for the first time.
> 
> Why Alt-O? Did you associate the script with Alt-O? You should avoid
> combination key used by Dialog GUI (Alt-O opens the Online menu).
> 
> Instead, if you don't have associate it with a key, here are the steps:
> in the script editor click on the "Show button config" button, click on
> "Scripts" on the left, click on ExpireRelative on the right, then in the
> shortcut field press your key combination, which must _not_ contain the Ctrl
> key. I've associated it with Shift+E, for example.
> 
>> The page gives little help to someone trying to install a script for the
>> first time.
> 
> Sorry for that, I did my best.
> I'll add a note about avoiding some keys.

OK - Maybe the process I finally figured out might help some new soul along
the way (maybe something like it could be posted somewhere)?

Settings/Scripting/Scripting/Custom Scripts to get to the correct script
editor window.

File/New Script to create a new script; Name the script the same as the
program name (e.g., ExpireRelative).

Delete the existing code and paste the script ExpireRelative into the new
script window.

The new script ExpireRelative.ds should be highlighted; Click the icon drop
down arrow and select an icon to be associated with the script; Enter in a
Hint to show with the icon (e.g., Plonk).

With ExpireRelative.ds highlighted, click on Show button config; select
scripting at the bottom of the left window; left mouse drag the
ExpireRelative icon from the right window to the toolbar; one can now click
on the icon in the toolbar to run the plonk script.

If desired, a shortcut key can be defined while in the Show button config
window by clicking on ExpireRelative in the right window and creating a
shortcut key combination (e.g., Shift+E - the key combination must *NOT*
contain the Ctrl key). Place the cursor in the shortcut key field and press
the desired key combination (pressing just the Ctrl key will delete the
shortcut key definition). The newly defined key combination can be used to
run the script. Care should be taken that the new key combination does not
conflict with other Dialog key combinations.

Open a message, and click on the new icon or use the new key combination
and the script will be executed.


Questions:

How does one find out the key combinations already used by Dialog?

I am thinking about commenting out the 

PostKey(79, false, true, false, false, false, false, false, false);

line so that I can see the result of the script action. Do you see any
problems with doing that?

Thank you for taking the time to post your script and to patiently answer
my question.

-- 
  Mike Vanecek
Technical Details
Message-ID: <118w4hdbulhg3$.dlg@mycomputer06.invalid.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!newscon06.news.prodigy.com!newscon02.news.prodigy.com!prodigy.net!nx01.iad01.newshosting.com!newshosting.com!novia!novia!sequencer.newscene.com!not-for-mail
References: <1h137jyjtctfi$.dlg@mycomputer06.invalid.com> <8o718re2w7kr$.dlg@maluc.it>

Show Full Headers
Complete Article Headers
Message-ID: <118w4hdbulhg3$.dlg@mycomputer06.invalid.com>
Subject: Re: [Dialog] Scripts
Date: Wed, 30 Nov 2005 16:15:02 +0000
From: MikeV06 <me@privacy.net>
References: <1h137jyjtctfi$.dlg@mycomputer06.invalid.com> <8o718re2w7kr$.dlg@maluc.it>
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!newscon02.news.prodigy.com!prodigy.net!nx01.iad01.newshosting.com!newshosting.com!novia!novia!sequencer.newscene.com!not-for-mail
Newsgroups: news.software.readers
Organization: None
Lines: 81
User-Agent: 40tude_Dialog/2.0.15.1
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Archive: yes