「シェルコマンドを実行」の版間の差分
変更履歴セクションの追加 |
オブジェクト名の修正(マクロリファレンス:3:OutputBar オブジェクトを参照) |
||
| (同じ利用者による、間の1版が非表示) | |||
| 15行目: | 15行目: | ||
== ソースコード == | == ソースコード == | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript" copy> | ||
/** | /** | ||
* シェルコマンドを実行する。 | * シェルコマンドを実行する。 | ||
| 47行目: | 47行目: | ||
// アウトプットバーにシェルコマンド実行結果を出力 | // アウトプットバーにシェルコマンド実行結果を出力 | ||
outputBar.visible = true; | |||
outputBar.Clear(); | |||
while (exec.Status == 0) { | while (exec.Status == 0) { | ||
outputBar.Write(exec.StdOut.ReadAll()); | |||
sleep(100); | sleep(100); | ||
} | } | ||
outputBar.Write(exec.StdOut.ReadAll()); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
スポンサーリンク