F12 adapl
F12 adapls can only be used with Adlib for DOS (under Windows, the same functionality is achieved in a different way). These adapls are executed when the user presses F12. There are three types of F12 adapls: one executed in display mode, one executed in edit mode, and one executed from a link screen.
• | Display mode: the adapl named f12adapl.bin. |
• | Edit mode: the adapl named linkproc.bin. |
• | Link screen: the adapl you enter under command procedure. |
The F12 ADAPLs can be used for all kinds of purposes. The most common application has proved to be starting up WordPerfect in Adlib, so that a WP document can be viewed in Adlib. An example:
text command[80]
if (bn <> '') {
/* in bn a unique file name is saved
/* e.g. doc1.wpd
command = 'dowp c:\wp51\' + bn
/* dowp is a batchfile that starts wp and then
/* opens the file in bn that is located in C:\wp51\
system (command)
attr(blue on white)
cls
}
end
The corresponding batchfile dowp.bat looks like this:
@echo off
echo 'Please wait.'
MODE CO80
if exists %1 C:\wp51\wp %1
This is but one example. The possibilities are legion.