home *** CD-ROM | disk | FTP | other *** search
-
- FromASCII / ToASCII 1.0 Mike Scalora PLink : SCARY
-
- This MODULE is public domain. Freely distributable as long as this
- notice stays in.
-
- This program was originally uploaded to PeopleLink's Amiga Zone. The Amiga
- Zone has well over 2700 members, and a library of thousands of public domain
- files. If you're interested in joining us, call 800-524-0100 (voice)
- or 800-826-8855 (modem).
-
- NOTE All inputs, arguments, and options may be upper or lower case.
- For syntax descriptions: Any items that are in upper or mixed case
- are text constants and any items that are in lower case are variable
- text. Also, any items between the characters '[' and ']' are optional.
- Any items that are followed by '...' may be repeated.
-
- SYNTAX
-
- ToASCII inputfile [ [TO] outputfile ] [-T] [-S]
-
- FromASCII inputfile [TO] outputfile
-
- -=-=-=-=-=-=-=-=- ToASCII -=-=-=-=-=-=-=-=-
-
- ToASCII converts a journal file to a text description of each event. The
- output of ToASCII can be used as the source (input) file for FromASCII.
- See documentation for FromASCII bellow for a description of the format
- of the output.
-
- -Total This option lists totals of mouse move events between key and
- button transitions. You can use this to replace many mouse
- move events with one event. Only '-T' is significant.
-
- -Short This option combines down and up, key transition events that
- occur one after another into a single line. FromASCII will
- convert this line back into two events, one down transition
- event and one up transition event. In this process, the delay
- between the down and up transition events is trimmed to 0.001
- seconds. Only '-S' is significant.
-
- -=-=-=-=-=-=-=-=- FromASCII -=-=-=-=-=-=-=-=-
-
- FromASCII converts text descriptions of journal events into a journal
- file suitable for being used with the Playback program.
-
- -=-=-=-=-=-=-=-=- SYNTAX FOR CODING JOURNAL FILE EVENTS -=-=-=-=-=-=-=-=-
-
- SYNTAX: for Key or Button events
-
- nnnnn ss [D|U] [qq ...] [; [comments] ]
-
- SYNTAX: for Mouse events
-
- nnnnn [-]xxx [-]yyy [qq ...] [; [comments] ]
-
- NOTE: Any line that does not have a numerical digit as its first nonblank
- character will be treated as a comment.
-
- WHERE:
-
- nnnnn is a one to five digit decimal number 0 to 65535. This is the
- delay from the last event in 100ths of a second.
-
- ss is a one or more character symbol for a key.
-
- One character symbols: A through Z , . / ; ' [ ] = \ `
-
- Two character symbols:
-
- Symbols that start with '@' are keys on the numeric keypad.
- @1 @2 @3 @4 @5 @6 @7 @8 @9 @0 @. @-
- Symbols thet start with '#' are keys NOT on the numeric keypad.
- #1 #2 #3 #4 #5 #6 #7 #8 #9 #0 #-
- Two character symbols the start with 'F' are function keys.
- F1 F2 F3 F4 F5 F6 F7 F8 F9 F0 NOTE: F0 is F10
- Special symbols
- SP - Space BS - Back Space RE - Return EN - Enter
- CU - Cursor Up CD - Cursor Down HE - Help TA - Tab
- CL - Cursor Left CR - Cursor Right DE - Del ES - ESC
- LS - Left Shift RS - Right Shift CA - Caps Lock CO - Control
- LA - Left Alt LC - Left Command ('Closed Amiga')
- RA - Right Alt RC - Right Command ('Open Amiga')
- LB - Left Button (Mouse) RB - Right Button (Mouse)
- MB - Middle Button (Mouse)
- NOTE: All two character keys may have extra character add to them,
- for example SP may be SPACE or SPA or SPASTIC or anything else
- that starts with SP
-
- [D|U] You may use 'D', 'U', or neither. 'D' is for a down
- transition of a key and 'U' is for an up transition of a key.
- If you don't use 'D' or 'U' then two key events will be generated,
- one for a down transition and another for an up trasition. The time
- delay for the up transition will be 1/100 of a second. Only the
- first character is significant.
-
- [qq ...] is optionally one or more, two or more character symbols for
- 'qualifiers'. These describe the state of effect keys at the
- time of this key event. The effent keys are Control (CTRL),
- Caps Lock, Left Shift, Right Shift, Left Alt, Right Alt,
- Left Command ('Closed Amiga'), and Right Comand ('Open Amiga').
- They also can describe the state of the mouse buttons, if the
- key is on the numeric keypad, an interrupt, multi-broadcast,
- if the key event was created by key repeating.
- Qualifier symbols:
- CO - Control CA - Caps Lock
- LS - Left Shift RS - Right Shift
- LA - Left Alt LC - Left Command ('Closed Amiga')
- RA - Right Alt RC - Right Command ('Open Amiga')
- NU - Numeric Keypad RE - Repeated Key
- IN - Interrupt MU - Multi-Broadcast
- LB - Left Mouse Button RB - Right Mouse Button
- MB - Middle Mouse Button
- NOTE: Qualifier symbols may be longer than two character. Only the
- first two characters are significant.
-
- ; The semicolon ';' is ignored and all text to the right of a
- a semicolon is ignored also.
-
- [-]xxx
- [-]yyy 'xxx' and 'yyy' are offsets for the change in position
- of the mouse pointer. Positive 'xxx' values move the pointer to the
- right and negative 'xxx' values move the pointer to the left.
- Positive 'yyy' values move the pointer down and negative 'yyy' values
- move the pointer up. Values for 'xxx' and 'yyy' are limited to
- the range -2048 to 2048. The units used for mouse move events
- map the screen as being 400 tall and 640 wide.
-
- EXAMPLE: To create a journal file to type 'Scary!^X' where ^X is CTRL-X:
-
- ------------------------------------------------------------------------------
- 00010 LS D LS ; Left Shift DOWN
- 00010 S LS
- 00010 LS U ; Left Shift UP
- 00010 C
- 00010 A
- 00010 R
- 00010 Y
- 00010 LS D LS ; Left Shift DOWN
- 00010 #1 LS
- 00010 LS U ; Left Shift UP
- 00100 CO D CO ; Control DOWN
- 00010 X CO
- 00010 CO U ; Control UP
- ------------------------------------------------------------------------------
-
- If you created a Journal file using this EXAMPLE with FromASCII
- and then ran it through ToASCII, here is what you would get:
-
- ------------------------------------------------------------------------------
-
- ;Journal v1.0 (June 1987)
-
- 00010 LS D LSHIFT
- 00010 S D LSHIFT
- 00001 S U LSHIFT
- 00010 LS U
- 00010 C D
- 00001 C U
- 00010 A D
- 00001 A U
- 00010 R D
- 00001 R U
- 00010 Y D
- 00001 Y U
- 00010 LS D LSHIFT
- 00010 #1 D LSHIFT
- 00001 #1 U LSHIFT
- 00010 LS U
- 00100 CO D CONTROL
- 00010 X D CONTROL
- 00001 X U CONTROL
- 00010 CO U
- ------------------------------------------------------------------------------
-
-
- -=-=-=-=-=-=-=-=- THE END -=-=-=-=-=-=-=-=-
-