
650
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
The method returns 0 if the user clicked OK, Continue, or Yes.
The method returns -1 if the user clicked Cancel or No.
Returns
int
Syntax
Alert(message, type)
Parameters
Alive
Description
Checks whether the current asynchronous client has a connection with a FrameMaker process. Call this method after
registering the asynchronous client using
WinConnectSession()
.
The method returns a positive integer if there is a current connection to a FrameMaker process. Otherwise it returns 0.
Returns
int
Syntax
Alive()
CallClient
Description
Allows a client to call another client. The method is useful for calling FrameMaker clients, such as the structure
generator and the element catalog manager.
On success, the method returns
FE_Success
or the value specified by the target client’s last call to
ReturnValue()
.
Note:
Calls to the structure generator always return FE_Success no matter what string is passed to it as an argument.
On failure, the method assigns the following value to
FA_errno
:
Constants.FF_ALERT_CONTINUE_WARN (3)
Displays the OK button with a warning indicator.
Constants.FF_ALERT_YES_DEFAULT (4)
Displays the Yes and No buttons; Yes is the default.
Constants.FF_ALERT_NO_DEFAULT (5)
Displays the Yes and No buttons; No is the default.
Parameter name
Data Type
Optional
Description
message
string
No
The message that appears in the dialog box. Messages longer
than 255 characters, are truncated.
type
int
No
The dialog box type.
Constant
Value