1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
2 |
"http://www.w3.org/TR/html4/strict.dtd"> |
3 |
<html> |
4 |
<head> |
5 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
6 |
<title>Command line</title> |
7 |
<meta http-equiv="Content-Style-Type" content="text/css"> |
8 |
<link rel="stylesheet" href="../style.css" type="text/css"> |
9 |
</head> |
10 |
<body> |
11 |
|
12 |
|
13 |
<h1>Command line</h1> |
14 |
|
15 |
<pre> |
16 |
<span class="syntax">TTPMACRO.EXE [/I] [/V] [<macro file> [<parameters>...]]</span> |
17 |
</pre> |
18 |
|
19 |
|
20 |
<h2>Options</h2> |
21 |
|
22 |
<dl> |
23 |
<dt>/I</dt> |
24 |
<dd>Iconify the macro window.</dd> |
25 |
|
26 |
<dt>/V</dt> |
27 |
<dd>Start MACRO in hidden (invisible) state.</dd> |
28 |
|
29 |
<dt><macro file></dt> |
30 |
<dd>Macro filename.<br> |
31 |
If this value is not a full path, it is understood as a relative path from ttpmacro.exe.<br> |
32 |
The filename(path excluded) is stored in the system variable "param1" and "params[1]". |
33 |
</dd> |
34 |
|
35 |
<dt><parameters></dt> |
36 |
<dd>Parameter(s) is passed to macro file.<br> |
37 |
The third argument of params system variable is stored into params[2] in a sequence.<br> |
38 |
Simultaneously, from param2 to param9 variables are also stored. |
39 |
</dd> |
40 |
</dl> |
41 |
|
42 |
<h2>System variables</h2> |
43 |
<p> |
44 |
<a href="syntax/variables.html">System variables</a> of command line configuration are as follow. |
45 |
</p> |
46 |
<dl> |
47 |
<dt>params</dt> |
48 |
<dd>String type array that parameters are stored<br> |
49 |
Whole string of command line is stored in params[0]. A macro filename is stored in params[1]. <br> |
50 |
The third argument is stored into params[2] in a sequence. |
51 |
</dd> |
52 |
|
53 |
<dt>param1</dt> |
54 |
<dd>This is same as params[1]. A macro filename is stored.</dd> |
55 |
|
56 |
<dt>From param2 to param9</dt> |
57 |
<dd>Same as from params[2] to params[9].<br> |
58 |
The third argument is stored into variable in a sequence. <br> |
59 |
The variable that corresponds to params[10] or later does not exist. |
60 |
</dd> |
61 |
|
62 |
<dt>paramcnt</dt> |
63 |
<dd>The number of params array. The params[1] that stores a macro filename counts.</dd> |
64 |
</dl> |
65 |
<p> |
66 |
Every element of params array and from param1 to param9 can store a string of up to 511 characters. |
67 |
</p> |
68 |
|
69 |
</body> |
70 |
</html> |