The routines in this section are specific to the OS/2 version of ScriptEase. They are included internally to the ScriptEase program, and are available to any ScriptEase program executed by ScriptEase under OS/2 2.x and above.
Most of these routines allow the programmer to have more power than is generally acknowledged as safe under ScriptEase' guidelines, so you'd better know what you're doing when you use these commands. They provide plenty of rope with which to hang yourself.
inport |
|
---|---|
DESCRIPTION |
Read byte from a hardware port. |
SYNTAX |
byte inport(int portid) |
COMMENTS |
Read a byte from hardware port: portid. |
inportw |
|
---|---|
DESCRIPTION |
Read word from a hardware port. |
SYNTAX |
int inportw(int portid) |
COMMENTS |
Read a word (16 bit) from hardware port: portid. Value read is unsigned (not negative). |
outport |
|
---|---|
DESCRIPTION |
Write byte to a hardware port. |
SYNTAX |
void outport(int portid,byte value) |
COMMENTS |
Write byte value to hardware port portid. |
outportw |
|
---|---|
DESCRIPTION |
Write word to a hardware port. |
SYNTAX |
void outportw(int portid,int value) |
COMMENTS |
Write word (16 bit) value to hardware port portid. |
The following is a brief summary of the OS/2 function libraries that ship with ScriptEase. These libraries are text files, and a more detailed explanation of the functions contained in each library appears at the beginning of each. The supplied ScriptEase sample scripts provide examples of how these functions are to be used. Additional libraries (and sample scripts) are available for download from Nombas' Website at:
http://www.nombas.com/download
Clipbrd.hmm |
Routines for working with the Clipboard. |
Comm.hmm |
Library of routines for accessing COM ports. |
Devioctl.hmm |
Interface to the DosDevIOCtl call. |
Dlgctrl.hmm |
Library of functions for controling dialog boxes via child windows (ie, buttons etc.). |
DOScalls.hmm |
Library of wrapper functions and defines for making calls to the DosCalls dll |
FileIO.hmm |
Low-Level file-access calls. |
FileDlg.hmm |
Routines for an implementation of the WinFileDlg() function found in PM. |
GiveMem.hmm |
Allocate more memory to an application. |
KeyPush.hmm |
Routines to control or mimic the pushing of keys on the keyboard. The functions in this library work by sending virtual keystrokes to the active window. |
MenuCtrl.hmm |
Functions for controlling PM menus. |
Msgbox.hmm |
ScriptEase code wrapper for the WinMessageBox function. |
NamePipe.hmm |
Some interfaces to named pipes. |
PMdll.hmm |
Functions and definitions for calls into the Presentation Manager DLLs. |
PortIO.hmm |
Library for calling port routines. |
Profile.hmm |
Routines for dealing with PM's Prifile functions (/INI files). |
ScanCode.hmm |
Return the keyboard scan code for a character. |
Textboss.hmm |
Functions for controlling a windowed DOS or windowed OS/2 session |
WinMsg.hmm |
WinPostMsg(), WinSendMsg() and related functions. |
WinSpawn.hmm |
WinSpawn() routine to execute the spawn function in a Windows session. |
WinTools.hmm |
Functions for setting the state of of PM windows. |
Win_Boss.hmm |
Functions for controlling a Windows session. This library works hand-in-hand with a session running ServeOS2.cmm via SEOS2 for Windows. |