Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

Contents of /trunk/doc/jp/html/macro/command/execcmnd.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3221 - (show annotations) (download) (as text)
Tue Mar 24 09:37:20 2009 UTC (15 years, 2 months ago) by maya
File MIME type: text/html
File size: 1258 byte(s)
CVS から SVN へ移行: trunk に集約
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>execcmnd</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>execcmnd</h1>
15
16 <p>
17 TTL コマンド を実行する。
18 </p>
19
20 <pre class="macro-syntax">
21 execcmnd &lt;statement&gt;
22 </pre>
23
24 <h2>解説</h2>
25
26 <p>
27 文字列 &lt;statement&gt; が表現する TTL コマンド を実行する。
28 </p>
29
30 <h2></h2>
31
32 <pre class="macro-example">
33 ; コマンド "send 'abc'" を実行。
34 execcmnd "send 'abc'"
35 ; 変数aに1を代入する
36 execcmnd "a=1"
37 </pre>
38
39 <pre class="macro-example">
40 for x 1 10 ;creates variables arr1 thru arr10 and assigns them 1 thru 10
41 tmp='arr'
42 int2str ix x
43 strconcat tmp ix
44 strconcat tmp '='
45 strconcat tmp ix
46 execcmnd tmp
47 next
48
49 messagebox arr1 'variable1'
50 messagebox arr2 'variable2'
51 messagebox arr3 'variable3'
52 messagebox arr4 'variable4'
53 messagebox arr5 'variable5'
54 messagebox arr6 'variable6'
55 messagebox arr7 'variable7'
56 messagebox arr8 'variable8'
57 messagebox arr9 'variable9'
58 messagebox arr10 'variable10'
59 messagebox arr11 'variable11' ; syntax error
60 </pre>
61
62 </body>
63 </html>

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26