home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 9
/
FreshFishVol9-CD2.bin
/
bbs
/
util
/
polyed-1.242.lha
/
PolyEd
/
Doc
/
arexx.doc
next >
Wrap
Text File
|
1994-09-29
|
16KB
|
542 lines
PolyEd's ARexx commands
Copyright © 1994 Avalon UnLtd.
Written by Robert Brandner
All Rights Reserved
Like every good program, PolyEd provides an ARexx Port. This document
describes all ARexx commands, PolyEd supports. For details about
results, naming of ports etc. see the main guide (it's name depends
on your preferred language).
Sorry, this document is - at the moment - only available in english.
--------------------------------------------------------------------------
ACTIVATEWINDOW
,
ACTIVATEWINDOW activates the first window of the project.
--------------------------------------------------------------------------
BACKSPACE
,
BACKSPACE deletes the character left to the cursor. At the beginning
of a line, the EOL character of the previous line is deleted, and so
the previous and the current line are joined.
--------------------------------------------------------------------------
BLOCK
START/S,FORGET/S
BLOCK starts or forgets block selection.
· START starts block selection. Following cursor movements will
select the block. Then you may CUT, COPY or ERASE the block.
· FORGET forgets selection.
Inserting or deleting text, or any mouse actions by the user,
have the same effect as BLOCK FORGET, So you should "LOCKGUI", to
avoid unwanted actions by the user.
--------------------------------------------------------------------------
CHANGEWINDOW
LEFTEDGE/N,TOPEDGE/N,WIDTH/N,HEIGHT/N
CHANGEWINDOW changes the position and size of the first window of
the project.
--------------------------------------------------------------------------
CLOSE
FORCE/S
CLOSE closes the project and its window(s). If the project has been
modified, the modified project requester comes up, asking the user if
he wants to save the project first.
· FORCE suppresses the modified project requester.
--------------------------------------------------------------------------
COLUMN
DELTA/N/A
COLUMN accepts positive and negative values, to move the cursor left or
right relative to its current position.
--------------------------------------------------------------------------
COPY
,
COPY places a duplicate of the currently selected block into the
clipboard.
--------------------------------------------------------------------------
CURSOR
UP/S,DOWN/S,LEFT/S,RIGHT/S
CURSOR moves the cursor up, down, left or right a single line or
column position.
--------------------------------------------------------------------------
CUT
LINE/S,EOL/S
CUT removes the currently selected block from the project, and places
it in the clipboard.
· LINE cuts the current line (incl. EOL)
· EOL cuts from current cursor position to end of line (excl. EOL)
--------------------------------------------------------------------------
DELETE
,
DELETE removes the character right to the cursor.
--------------------------------------------------------------------------
ERASE
,
ERASE removes the selected block from the project.
--------------------------------------------------------------------------
FIND
PROMPT/S,NEXT/S,PREVIOUS/S,TEXT/F
FIND searches for text that matches the specified text.
· PROMPT opens the Find requester, but does not search.
· NEXT searches for the next occurence of findstring.
· PREVIOUS searches for the previous occurence of findstring.
· TEXT sets findstring to specified text.
'FIND NEXT' finds the next occurence of whatever findstring is.
'FIND foobar' sets findstring to 'foobar' but does not search.
'FIND NEXT foobar' sets findstring to 'foobar' and searches.
'FIND PROMPT' opens the Find requester.
--------------------------------------------------------------------------
FINDCHANGE
FINDCHANGE PROMPT/S,FIND/K,CHANGE/K,ALL/S
Searches for text and replaces it by another text. This is done like
replace from the menu, i. e. if the selected block matches findstring
it is replaced by changestring, else nothing is done. Then the next
occurence of findstring is selected.
· PROMPT opens the Find & Change requester, but does not search.
· FIND sets findstring to specified text.
· CHANGE sets changestring to specified text.
· ALL searches and changes from current cursor position to end
of text.
'FINDCHANGE FIND foobar CHANGE hello' sets findstring to 'foobar',
changestring to 'hello' and does a find & replace.
'FINDCHANGE' does a find & replace with current findstring
and changestring.
--------------------------------------------------------------------------
FINDNEXT
,
FINDNEXT finds the next occurence of findstring.
--------------------------------------------------------------------------
FINDPREVIOUS
,
FINDPREVIOUS finds the previous occurence of findstring.
--------------------------------------------------------------------------
GETATTR
OBJECT/A,NAME,FIELD
GETATTR obtains information about the attributes of an object.
· OBJECT specifies the object type to obtain information on.
· NAME specifies the name of the object.
· FIELD spceifies which field should be checked for information.
In the above OBJECT you may seek information an the attributes of
any of the following items:
· APPLICATION
· PROJECTS
· PROJECT <name>
· MACROS
· MACRO <name>
If the destination variable is a stem variable, the following fields
are available:
APPLICATION consists of the following nodes (an aspect of APPLICATION
you can seek sub-information about):
· VERSION Contains the current version information.
· SCREEN Contains the name of the public screen,
PolyEd resides in.
· CURRENT Contains the name of current project's
arexx port.
· AREXX Contains the name of PolyEd's global port.
· VAR_BLOCKSTARTLINE These four nodes ...
· VAR_BLOCKSTARTCOL ... contain the beginning ...
· VAR_BLOCKENDLINE ... and end of ...
· VAR_BLOCKENDCOL ... the selected block.
· VAR_FINDSTRING Contains the findstring FIND, FINDCHANGE,
FINDNEXT and FINDPREVIOUS look for.
· VAR_CHANGESTRING Contains the changestring, FINDCHANGE uses.
· FLAG_IGNORECASE Contains the status of 'Ignore Case?'.
· FLAG_WHOLEWORDS Contains the status of 'Whole Words?'.
· VAR_ARRANGEMODE Contains the status of window arrange style
( 0=stacked, 1=vertical, 2=horizontal, 3=full size )
· FLAG_LEARNING Contains the status of 'Learn macro'.
· VAR_RIGHTBORDER Contains right border value (from settings).
· VAR_TABWIDTH Contains Tab width value (from settings).
· FLAG_OVERWRITE Contains the status of 'Overwrite?'.
· FLAG_AUTOINDENT Contains the status of 'Auto indent?'.
· FLAG_TABISSPACES Contains the status of 'TAB is spaces?'.
· FLAG_CREATEICONS Contains the status of 'Create icons?'.
· VAR_FULLINES Contains the status of 'Full Lines'
( 0=ignore, 1=word wrap ).
· VAR_AUTOSAVE Contains the status of 'Auto Save'
( 0=never, 1=every 5 min, 2=every 10 min,
3=every 15 min, 4=every 30 min, 5=every hour ).
· VAR_BACKUPS Contains the status of 'Backups'
( 0=none, 1=last version, 2=infinite ).
· VAR_SAVEAS Contains the status of 'Save as'
( 0=ASCII, 1=IFF FTXT ).
PROJECTS.COUNT contains the number of projects; PROJECTS.0 through
PROJECTS.n contain the name of the project.
PROJECT consists of the following nodes:
· AREXX Contains the ARexx port of the project.
· FILENAME Contains the complete filename of the project.
· PATH Contains the path portion of the filename.
· FILE Contains the file portion of the filename.
· LINES Contains the number of lines of the project.
· CHANGES Contains the number of cchanges mode to the
project (since last save).
MACROS.COUNT contains the number of macros; MACROS.0 through
MACROS.n contain the name of the macro.
MACRO consists of the following nodes:
· FILENAME Contains the filename of the macro.
· HOTKEY Contains the macros hotkey.
See the demo program 'getattr.ped' for how to use this complex command.
--------------------------------------------------------------------------
GETCHAR
,
GETCHAR returns the character right to (or under) the cursor.
--------------------------------------------------------