Categories
Learn Scripting
Search Scripts
Fun Scripts
Utility Scripts
Advanced Scripts
Running Scripts
QSL Reference Manual (PDF)
QSL Scripting Tips
Submit your own script to this collection
|
You can put your scripts whereever you wish: even on a
host computer. However,
Qedit for Windows stores and uses scripts in several sub-directories
on your local PC, all stored in the same directory as the Qedit
client (typically c:\robelle\qedit ).
The system directory contains scripts distributed by Robelle
(don't modify them there because we overwrite the directory on each install).
The user directory is for your company-wide scripts.
You can also set a directory for your personal scripts in the Preferences
dialog box.
Within each directory there are 3 subdirectories:
Autoload, Startup and Scripts.
- The Autoload directory contains scripts that will be automatically loaded
(but not executed) when Qedit for Windows starts.
Examples of such scripts would be Sortlines or ListAll in the Robelle script library.
- The Scripts directory contains other scripts that must be explicitly loaded
or executed by the user.
The Scripts directory of the Robelle script library
contains scripts for demonstration or utility purposes.
- Hello World: your first script. Revised: Thursday, 07-Dec-2000 12:36:12 EST hello.qss
- Hello-Goodbye: a script with two commands.
- Macro to Insert String: qedit.activefile property
and file.insert() method.
- Multi-line Signature: typeof(), if-endif-else,
stop, lists.
- Insert a Timestamp: datetime(), fmtshortdatetime().
- Signature and Timestamp Macros: packaged, shared sub() and global.
- Insert a Rectangle of Stars: select(), evaluation
of IF expressions, Repeat, Insertcolumn().
- Special Characters: simple example of inserting common characters
- Replace Rectangle with Stars: delete(),
then insertcolumn().
- Make rectangular box: draw a box out of asterisks.
- Rectangular paste insert into box: supplements
the Rectangular Paste-Replace of QWIN 4.8 with an Insert operation.
- Generate HTML Table: input via dialog(), design with subs.
- Copy Files to Hosts: connections, open(), select(), copy(), delete(), paste(),
and forceoverwrite.
- Copy a List of Files: stepping through a list,
well-structured subs.
- Copy With Better Error Handling: SaveAs() with ForceOverwrite: True.
- Load and Call Other Scripts: loadscript().
- Duplicate the current file: newfile(), copy(), paste(),
select().
- Regular Expression Search of Any File: find(),
try-recover, dialog(), repeat-endrepeat.
- Selectively Replace Matches: find(replacewith: string).
- Show All Open Connections: qedit.showscp, qedit.openconnections.
- Upshift or downshift text:
Upshift and Downshift built-in functions.
There are a number of ways to run a QSL script:
- Executing an open script file
- Loading scripts on the script menu
- Automatically loaded scripts
- Programmatically loading scripts
- Calling scripts from other scripts
- Invoking scripts from other scripts
For details, see the QSL Scripting Tips.
|