Browse Subversion Repository
Contents of /trunk/doc/jp/html/macro/command/waitln.html
Parent Directory
| Revision Log
Revision 3227 -
( show annotations)
( download)
( as text)
Tue Mar 24 15:10:33 2009 UTC
(15 years, 2 months ago)
by maya
File MIME type: text/html
File size: 1410 byte(s)
CVS から SVN へ移行: 改行コードを LF から CR+LF へ変換
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=Shift_JIS"> |
6 |
<title>waitln</title> |
7 |
<meta http-equiv="Content-Style-Type" content="text/css"> |
8 |
<link rel="stylesheet" href="../../style.css" type="text/css"> |
9 |
</head> |
10 |
|
11 |
<body> |
12 |
|
13 |
|
14 |
<h1>waitln</h1> |
15 |
|
16 |
<p> |
17 |
文字列を含む行を待つ。 |
18 |
</p> |
19 |
|
20 |
<pre class="macro-syntax"> |
21 |
waitln <string1> [<string2> ...] |
22 |
</pre> |
23 |
|
24 |
<h2>解説</h2> |
25 |
|
26 |
<p> |
27 |
文字列 <string1>, [<string2>, ...] のうち一つを含む行をホストから受信するか、タイムアウトが発生するまで MACRO を停止させる。文字列は最大 10 個まで指定できる。 |
28 |
</p> |
29 |
|
30 |
<p> |
31 |
システム変数 timeout か mtimeout が 0 より大きい場合、<timeout>.<mtimeout> 秒の時間がすぎるとタイムアウトが発生する。タイムアウトの値が 0 以下の場合は、タイムアウトは発生しない。 |
32 |
</p> |
33 |
|
34 |
<p> |
35 |
これらのコマンドは受信した行をシステム変数 inputstr に格納し、以下の値をシステム変数 result に格納する。 |
36 |
</p> |
37 |
|
38 |
<table> |
39 |
<tr> |
40 |
<th>値</th> |
41 |
<th>意味</th> |
42 |
</tr> |
43 |
<tr> |
44 |
<td>0</td> |
45 |
<td>タイムアウト。</td> |
46 |
</tr> |
47 |
<tr> |
48 |
<td>1</td> |
49 |
<td><string1> を含む行を受信した。</td> |
50 |
</tr> |
51 |
<tr> |
52 |
<td>2</td> |
53 |
<td><string2> を含む行を受信した。</td> |
54 |
</tr> |
55 |
<tr> |
56 |
<td>n</td> |
57 |
<td><stringn> を含む行を受信した。n=1..10</td> |
58 |
</tr> |
59 |
</table> |
60 |
|
61 |
</body> |
62 |
</html> |
|