Download AccuTerm 7 User Manual

Transcript
AccuTerm 7 Automation
163
Makes the session window visible.
2.3.5.2.49 Terminate method (Session)
Syntax:
session.Terminate [ prompt]
Description:
This closes the session. If prompt = 1 or 3, and If any session settings have been modified subsequent
to loading or saving the session, the user will be prompted whether to save the settings. If prompt = 2 or
3, and the session is connected via a network or dialup connection, the user will be prompted to
disconnect.
This method is the same as the Close method, and is available when using late binding.
2.3.5.2.50 UnloadImage method
Syntax:
session.UnloadImage [ filename]
Description:
Removes an image created with the LoadImage method from the terminal screen. The image to be
removed is identified by filename. If filename is not specified, the all images are removed.
2.3.5.2.51 Upload method
Syntax:
result = session.Upload(source , protocol , binary
[, overwrite])
Description:
Uploads a file from the user’s PC to the connected host system. Source is the name of the source file(s)
(Kermit, Ymodem and Zmodem may use wild-card characters in source). Protocol is atProtocolASCII,
atProtocolKermit, atProtocolXmodem, atProtocolYmodem or atProtocolZmodem. Binary is True
(non-zero) for binary transfer mode, False (zero) for text transfer mode. Overwrite is meaningful for
Zmodem only and must be atProtect, atOverwrite, atAppend, atNewer, atUpdate or atResume.
2.3.5.2.52 WaitFor method
Syntax:
result = session.WaitFor(mode, timeout, string1
[ , ... , string10])
Description:
This method causes AccuTerm to wait for one or more strings to be received from the host system.
Returns the index of the string first matched, or zero (0) if no string matched within timeout seconds. If
mode is zero, a case-sensitive comparison is performed, otherwise the comparison is case-insensitive.
Up to ten target strings may be specified.
For the WaitFor method to work properly, the session InputMode property should be set to 1 or 2.
Otherwise, the terminal emulation process may process characters received from the host before the
WaitFor function has a chance to examine them.
Copyright 2010-2013 Schellenbach & Assoc., Inc.