Copyright (c) Hyperion Entertainment and contributors.
AmigaOS Manual: Python Interprocess communication through ARexx ports
Contents
- 1 Workbench
- 1.1 Commands
- 1.1.1 ACTIVATEWINDOW
- 1.1.2 CHANGEWINDOW
- 1.1.3 DELETE
- 1.1.4 FAULT
- 1.1.5 GETATTR
- 1.1.6 HELP
- 1.1.7 ICON
- 1.1.8 INFO
- 1.1.9 KEYBOARD
- 1.1.10 LOCKGUI
- 1.1.11 MENU
- 1.1.12 MOVEWINDOW
- 1.1.13 NEWDRAWER
- 1.1.14 RENAME
- 1.1.15 RX
- 1.1.16 SIZEWINDOW
- 1.1.17 UNLOCKGUI
- 1.1.18 UNZOOMWINDOW
- 1.1.19 VIEW
- 1.1.20 WINDOW
- 1.1.21 WINDOWTOBACK
- 1.1.22 WINDOWTOFRONT
- 1.1.23 ZOOMWINDOW
- 1.1 Commands
Workbench
Workbench is Amiga's default graphical user interface which opens up when Amiga is booted. Through Workbench you can launch applications and manage files and disks using the mouse. Workbench acts as an ARexx host under the name of WORKBENCH which will allow scripts to command Workbench just as users do.
In order to send commands to Workbench from a Python script, the arexx module must be imported first. The module contains the necessary functions to interface with an ARexx host. The module can be imported as follows:
# Include arexx module import arexx
After importing the module, commands can be send to Workbench using the dorexx method:
rc1, rc2, result = arexx.dorexx( 'WORKBENCH', 'MENU WINDOW ROOT INVOKE WORKBENCH.ABOUT')
In the example above, Workbench's about requester will be opened by sending a command MENU WINDOW ROOT INVOKE WORKBENCH.ABOUT to Workbench.
Commands
Workbench responds to the commands listed below.