🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by MikeV06 Wed, 30 Nov 2005 04:48
[Dialog] Scripts
#176873
Author: MikeV06
Date: Wed, 30 Nov 2005 04:48
34 lines
3511 bytes
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.

Also, I have installed the OnBeforeSendingMessage script in the event
window as per

http://www.40tude.com/dialog/wiki/index.php/ScriptBoxquote

box does this:

,---- [Example with Box -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.] --.
| and box_o does this:                                                                                                                                                                                            |
|                                                                                                                                                                                                                 |
| box_o:                                                                                                                                                                                                          |
| Example with Box                                                                                                                                                                                                |
| -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.                                                                                                                                                                            |
'-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------'

Box_o: does pretty good; however, the boxing for box: does not align very
well in the message reader. I suspect that is because the script is not
putting spaces in for the font type used by Dialog?

Thanks for the help.
Re: [Dialog] Scripts
#176878
Author: MikeV06
Date: Wed, 30 Nov 2005 05:29
20 lines
1548 bytes
The boxes have a problem without work wrap. Try again.


,---- [Box Example] --------------------------------------------------------.
| Box_o: does pretty good; however, the boxing for box: does not align very |
| well in the message reader. I suspect that is because the script is not   |
| putting spaces in for the font type used by Dialog?                       |
'---------------------------------------------------------------------------'


box_o
Box_o Example
-
Box_o: does pretty good; however, the boxing for box: does not align very
well in the message reader. I suspect that is because the script is not
putting spaces in for the font type used by Dialog?
-


Maybe it will work this time.
Re: [Dialog] Scripts
#176883
Author: MLC
Date: Wed, 30 Nov 2005 08:56
33 lines
2578 bytes
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.

-- 
Maria Luisa C - 30/11/2005 9.35.48
All those who believe in psychokinesis raise my hand.
-
Re: [Dialog] Scripts
#176897
Author: 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
Re: [Dialog] Scripts
#176903
Author: MLC
Date: Wed, 30 Nov 2005 18:09
41 lines
2749 bytes
mercoledì 30 novembre 2005 MikeV06 ha scritto:

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

Well, in the Dialog help there are these pages:
dialog.chm::/scripting.htm
dialog.chm::/thescriptingwindow.htm

anyway you could make a page on Wiki (when it works, because today I
couldn't save my changes) with your good step by step guide for custom
scripts. 

> Questions:

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

When you click on the Close button after having entered your hotkey, if that
hotkey is already used, Dialog tells you by which command/script it's used
and asks what you want to do.
For the menus instead you see by yourself the underlined letters, so Alt+F
open the File menu, etc.  

> 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?

On the contrary, I did the same myself.

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

You're welcome :-)
-- 
Maria Luisa C - 30/11/2005 19.05.22
Courage is the art of being the only one who knows
you're scared to death.    Harold Wilson
-
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