home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Direkt 1995 #6
/
CDD_6_95.ISO
/
cdd
/
winanw
/
hawin
/
readme.api
< prev
next >
Wrap
Text File
|
1994-12-07
|
41KB
|
1,223 lines
(The best way to view README.API in Windows Notepad is to
maximize the Notepad window. The best way to print
README.API is to open this file in Windows Write, Microsoft
Word, or another word processor, select the entire file, and
format the text in 10 point Courier before printing.)
------------------------------------------------------------
HyperACCESS for Windows (HA/Win) Version 2.0 README.API File
------------------------------------------------------------
Contents
- New API Functions
haComDriverSpecial (ScriptHandle, pszCmd)
haCreateNewSession (hScript, pszName)
haGetLearnFileName (ScriptHandle, nSize, pszBuffer)
haGetSelectedText (ScriptHandle, nSize, pszBuffer)
haGetSessionName (ScriptHandle, nSize, pszBuffer)
haLearnControl (ScriptHandle, nCmd)
haNotifyOnTerminate (ScriptHandle, hWnd, nMsg)
haPause (ScriptHandle, lTime)
haRestrictMenus (ScriptHandle, nMode)
haSetLearnFileName (ScriptHandle, pszPtr)
haSetLocalDisplay (ScriptHandle, nFlag)
haSpawn (hScript, pszName)
- Other Include Files
- API Examples
-------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------
New API Functions
------------------
haComDriverSpecial
Passes a device specific command string to the comm driver.
Syntax:
haComDriverSpecial (ScriptHandle, LPSTR pszCmd)
SCRIPTHANDLE ScriptHandle The program - HA\Win link
LPSTR pszCmd The command string
Arguments:
ScriptHandle
The script handle returned from haInitialize.
pszCmD
The command string that you want to pass to
comm driver. Depends on device.
Remarks:
Return Value:
Standard
--------------------------
haCreateNewSession
Opens a new session and creates a new session file.
Syntax:
haCreateNewSession(ScriptHandle, pszName)
SCRIPTHANDLE ScriptHandle The program - HA\Win link
LPSTR pszName The name used for the session
Arguments:
ScriptHandle
The script handle returned from haInitialize.
pszName
The name of the new session. This is the name that
shows up in the title bar of the new session, as well
as the Phonebook. It is also used to generate the
filename, the first eight characters being used,
with non alphanumeric characters being replaced by
an underscore.
Remarks:
The session is not connected when it is initially created.
The newly created session becomes the current session for
the script. A script can interact with several sessions
simultaneously by storing the session handles in variables
and using haSetSession to move among them.
Return Value:
Returns a session handle if successful. Otherwise a
standard API error code.
See Also:
haCloseSession, haConnectSession, haOpenSession
------------------
haGetLearnFileName
Returns the name of the learn file (script) for the currently active
session.
Syntax:
INT haGetLearnFileName(ScriptHandle, nSize, pszBuffer)
SCRIPTHANDLE ScriptHandle The program - HA/Win link
INT nSize The size of the following buffer
LPSTR pszBuffer A pointer to a buffer
Arguements:
ScriptHandle
The script handle returned from haInitialize.
nSize
The size of the following buffer.
pszBuffer
A pointer to a buffer that is to contain the filename.
Remarks:
The buffer should be large enough to accomodate a complete path
and filename. If the buffer is too small, only as much of the
name as will fit will be copied.
Return Value:
Returns 0 if successful. Otherwise,a standard API error code.
See Also:
haSetLearnFileName, haGetCaptureFileName
-----------------
haGetSelectedText
Get the selected (highlighted) text from the associated session
window.
Syntax:
INT haGetSelectedText(ScriptHandle, nSize, pszBuffer)
SCRIPTHANDLE ScriptHandle The program - HA/Win link
INT nSize The size of the following buffer
LPSTR pszBuffer A pointer to a buffer
Arguments:
ScriptHandle
The script handle returned from haInitialize.
nSize
The size of the following buffer.
pszBuffer
A pointer to a buffer that is to receive the selected
text.
Remarks:
Since there is no way to predict how much text the user is
going to select, make the buffer as big as is possible and
still be reasonable. And remember, it still won't be large
enough every time.
Return Value:
Returns 0 if successful. Otherwise a standard API error code.
See Also:
haGetTextFromScreen
----------------
haGetSessionName
Returns the name of the current session.
Syntax:
INT haGetSessionName(ScriptHandle, nSize, pszBuffer)
SCRIPTHANDLE ScriptHandle The program - HA/Win link
INT nSize The size of the following buffer
LPSTR pszBuffer A pointer to a buffer
Arguments:
ScriptHandle
The script handle returned from haInitialize.
nSize
The size of the following buffer.
pszBuffer
A pointer to a buffer that is to recieve the string.
Remarks:
The session name is the string that is displayed in the title
bar of an open session. It is also displayed in some of the
Phonebook views.
Return Value:
Returns 0 if successful. Otherwise, a standard API error code.
See Also:
haGetSessionDataString
--------------
haLearnControl
Turns learning(recording) on or off for the currently active session.
Syntax:
INT haLearnControl(ScriptHandle, nCmd)
SCRIPTHANDLE ScriptHandle The program - HA/Win link
INT nCmd The control command
Arguements:
ScriptHandle
The script handle returned from haInitialize.
nCmd
This is a constant value that represents the command to
be applied to the HA/Win learning(recording) system.
Value Meaning
---------- -------------------------------------
HA_L_START Start learning(recording).
HA_L_STOP Stop learning(recording) and save the
learned script in the default file.
HA_L_ABORT Stop learning(recording) but do not
save the learned script.
Remarks:
Return Value:
Returns 0 if successful. Otherwise, a standard API error code.
See Also:
haSetLearnFileName, haCaptureControl
-------------------
haNotifyOnTerminate
Posts a message to a specified Window when the session closes.
Syntax:
INT haNotifyOnTerminate(ScriptHandle, hWnd, nMsg)
SCRIPTHANDLE ScriptHandle The program - HA/Win link
HWND hWnd A window handle to post to
INT nMsg The message to be posted
Arguments:
ScriptHandle
The script handle returned from haInitialize.
hWnd
The handle of the window that the following message is
to be posted to.
nMsg
The message that is to be posted to the previous window
handle.
Remarks:
Posting messages across tasks is not a standard method in a
Windows program. However, it can sometimes be useful. In
this case, the message is posted if the script handle is still
valid and the window handle is still valid. There is no type
of checking done on the message. It is up to the user to
correctly deal with it.
Return Value:
Returns 0 if successful. Otherwise, a standard API error code.
See Also:
haGetHWND
------------------
haPause
Causes the API interface to enter the HyperACCESS server idle loop for a
specified period of time.
Syntax:
haPause (ScriptHandle, lTime)
SCRIPTHANDLE ScriptHandle The program - HA\Win link
LONG lTime How long to pause
Arguments:
ScriptHandle
The script handle returned from haInitialize.
lTime
The amount of time to pause, measured in milliseconds.
Remarks:
Similar to haSleep. While an application pauses, the session neither
sends nor receives characters. During this time, however, windows
messages continue to be dispatched to prevent