The Last Word 3.0 Reference Manual

7.2 RUNNING MACROS

Macros are executed in one of three ways:

Pressing <ESCAPE>, then the key the macro is attached to.

Holding down <Option> then pressing the keystroke the macro is attached to.

Pressing the key combination the macro is attached to.

An important change has been implemented in LW 3.0 regarding macros. In response to requests from several users to be able to enter <CTRL+KEY> characters into the editor without pressing <CTRL+Escape> first, keystrokes are now scanned against macro definitions BEFORE they are scanned against the list of internal commands. This means you can now write a macro which totally supersedes a built-in command. You can, for example, attach a macro to the <CTRL+L> keystroke, and this macro will override the “Load” command. Note that the load command will be completely lost unless you implement a way of calling the <CTRL+L> command in another way. The only way you can now override a macro which replaces an internal command and get the internal command back from the keyboard is by holding down <Option> while typing the command keystroke.

There is one other special macro keystroke:

<Start>

Pressed on its own will run the <#> macro, should one exist. This

 

is another throwback to TextPro. However, in LW, use of the Start

 

key has been augmented. Holding down <Start> while pressing

 

another key combination will by-pass macro scanning. This

 

means you can selectively run the underlying built-in command,

 

even if its keystroke has been “stolen” by a macro definition.

The way <Escape> triggers macros is one of the reasons <CTRL+ESCAPE> or <SHIFT+ESCAPE> is necessary to enter control characters in the editor and input dialogues. Another reason is that I wanted to make <ESCAPE> an abort key at all other times.

7.2.1 AUTORUN MACROS

LW has two kinds of “autorun” macros: The Startup macro and the Autoexec macro. The Startup macro is attached to the “@” key and is only run when LW first loads: therefore, the “&” needs to be defined in LW.MAC.

The second kind of autorun macro is the autoexec macro, which is should be defined on the “&” key. This macro is run when a macro is loaded during an editing session with the <SHIFT+CTRL+M> command. Note that the autoexec macro will not be run in LW.MAC when it is loaded at startup (the startup macro is run instead); if LW.MAC is re-loaded later in an editing session, however, the autoexec macro (&) will be run instead of the startup macro.

7-40

Page 40
Image 40
Atari XL manual Running Macros, Autorun Macros

XL specifications

The Atari XL series, launched in 1982, represented a significant evolution in home computing, building upon the foundation laid by the Atari 400 and 800 systems. This line of computers included popular models such as the Atari 600XL and 800XL, both of which combined affordability with robust capabilities, making them attractive options for home users, educators, and enthusiasts alike.

One of the standout features of the Atari XL series was its color display capabilities. The systems supported a resolution of 320x192 pixels with a vibrant palette of 128 colors, which enabled rich graphics for games and applications. This was complemented by the system's powerful Antic graphics chip that allowed for advanced video display modes, making the Atari XL series particularly popular for gaming and multimedia applications.

Another key technology driving the Atari XL series was its use of the 6502 processor, which delivered efficient performance and allowed for smooth multitasking. The systems typically came with 64KB of RAM, expandable to 128KB, providing ample memory for running multiple applications simultaneously, a notable feature in comparison to other microcomputers of the time.

The Atari XL series also introduced a new, user-friendly operating system known as Atari DOS. This improved disk management capabilities, making it easier for users to manage files and applications on floppy disks. The systems were equipped with built-in BASIC programming language, enabling users to dive into programming and coding, fostering a generation of hobbyists and developers.

Each model in the Atari XL series came with a distinctive keyboard design, offering both a chic and functional layout. The keyboards were known for their tactile feel, making them suitable for typing and coding over extended periods.

Additionally, the Atari XL computers were compatible with a wide range of peripherals, such as printers, modems, and disk drives, enhancing their versatility. Users could also take advantage of a rich library of software, including educational programs, productivity tools, and an ever-growing selection of games.

The Atari XL series not only boasted solid technology and capabilities but also garnered a devoted community. The systems contributed to a vibrant culture of gaming and computing in the early 1980s, which remains fondly remembered by enthusiasts today. With their combination of innovative technology, user-centric design, and a diverse software library, the Atari XL series played a crucial role in the evolution of home computing.