12-3
Creating A Script File
For example, to program a key or button so that it will run the script file
myscript.scr
and assign the values
value1
to variable ArgV1 and
value2
to ArgV2, you would
enter the following in the key/button definition text box:
<'myscript.scr(value1,value2)'>
Refer to the
Keyboard Macros
and
Soft Buttons
sections in the
Setup Menus
chapter
for information on programming keys and buttons.
Using An Escape Sequence
A script file can be initiated remotely by using the following escape sequence:
ESC P 2 z
filename
ESC \
where
filename
can include arguments as described in the next section.
Assigning Values To Variables
You can specify the value of specific variables within the script file by using the
(
)
combination immediately following the name of the script file to be run. For
example:
myscript.scr(value1,value2,etc)
Each value within the parentheses must be separated by a comma with no spaces in
between. The script decoder stores the number of values specified, also treating the
name of the script file as a value, in the integer variable
ArgC
. The values
themselves are assigned to the following
ArgV
string variables:
ArgV0
contains the
name of the script file (
"myscript.scr"
in the example above),
ArgV1
contains
"value1"
,
ArgV2
contains
"value2"
, and so on.
The
ArgC
and
ArgV#
variables are predefined by the script language and so are not
defined by the
var
command. Just use the variable names in the program where
applicable, remembering that the number of the
ArgV#
variable name must match
the location number of the value that will be entered on the command line.
It is up to the user to ensure that the values specified on the command line are in the
right order so that they are assigned to the correct
ArgV#
variables.
Содержание -05W
Страница 1: ...TeemTalk 05W 07W 11W User s Guide...
Страница 38: ...2 24 Getting Started Notes...
Страница 58: ...3 20 Keyboard Configuration Notes...
Страница 152: ...8 20 File Transfer Notes...
Страница 162: ...9 10 ICL FTF File Transfer Notes...
Страница 324: ...13 32 Dynamic Data Exchange Text1 i 12 LinkItem 0 i 80 Text1 i 12 LinkMode 1 Next i End If End Sub...
Страница 336: ...C 6 Key Reference Numbers Notes...
Страница 360: ...E 16 Host Command Summary Notes...
Страница 370: ...Index 10 Index X XMODEM 8 1 XMODEM 1K 8 1 Y YMODEM Batch 8 2 Z ZMODEM 8 2 Zoom Button 2 17...