Set or return the list of packages enabled for a window/module. If the name of the window/module is omitted, the current window is used. If the packagelist is omitted, the current list of packages is returned unchanged. Otherwise the packagelist contains a string list of packages to enable.
These will both print the list of packages enabled for the current window
adds the package 'NewPackage' to the list of enabled packages for the current window. Note that the NewPackage must be loaded for this to work.
Assume that a package called "Chat" is used to clean up the chat windows in $WindowList, but that is the only package should be applied to those chat windows. This will set the only enabled packages for those windows to be "Chat"
This can be taken a step further by adding it as an onLoad EVENT in the "Chat" package as follows:
#EVENT onLoad {
}
Add comment