Difference between revisions of "ReNamer:Rules:PascalScript"
(→Using a script: fixed broken list items) |
|||
Line 7: | Line 7: | ||
=== Using a script === | === Using a script === | ||
# Click on the [[Image:ScriptsButton.png]] button (located just below the '''Configuration '''pane). | # Click on the [[Image:ScriptsButton.png]] button (located just below the '''Configuration '''pane). | ||
− | + | #: A list of scripts appears. | |
− | A list of scripts appears. | + | #: [[Image:PascalScriptsMenu.png]] |
− | |||
− | [[Image:PascalScriptsMenu.png]] | ||
− | |||
# All available scripts are listed ''above'' the line. Click on any script to load it into the '''Configuration '''pane. | # All available scripts are listed ''above'' the line. Click on any script to load it into the '''Configuration '''pane. | ||
# Edit the script if required | # Edit the script if required |
Revision as of 13:49, 23 June 2009
PascalScript Rule
This rule uses Pascal/Delphi programming syntax and conventions. ReNamer comes some preloaded scripts. Let us see how to use them, and later see how to add a new script.
Using a script
- Click on the button (located just below the Configuration pane).
- All available scripts are listed above the line. Click on any script to load it into the Configuration pane.
- Edit the script if required
- Press button to add the script to the rule stack.
- Repeat steps 1-4 to add more script-based rules.
Borrowing scripts from forum
Even if you do not know how to write a script, you can easily use scripts written by others.
First, visit the User Forum and search for a suitable script. The Forum already has a large number of such scripts. Some of these scripts have embedded comments about how to customize the script.
If you cannot find a suitable script, you can request other users to write a script for you.
Once you find such a script, follow these simple steps:
Writing your own scripts
To write your own scripts, you must have knowledge of Pascal script.
Learning Pascal script is easy. Refer to the Pascal Script Manual.
We will assume here that you already know how to write pascal scripts. The step-by-step procedure is as follows:
- Click in the Configuration pane and enter the script directly. (You can also copy it from anywhere and paste it into the pane by pressing CTRL+V. Or right-click in the pane and select the Paste option from the context menu.)
- Compile the script by pressing the button located below the Configuration pane.