マクロの動きを途中で 止める方法は いろいろあります。
たとえば
http://ttssh2.sourceforge.jp/manual/ja/macro/command/pause.html
pause
休止する。
pause <time>
解説
TTL の実行を <time> 秒だけ休止する。
http://ttssh2.sourceforge.jp/manual/ja/macro/command/messagebox.html
messagebox
ダイアログボックスを開き、ユーザーにメッセージを知らせる。
messagebox <message> <title>
pauseの場合、後に必ず<time>を入れないとエラーになるようですが、エラーを出さずに簡単に止められませんか?
1.マクロの途中でマクロの動きを止める方法をご存知ありませんか?
「途中で止める」というのは、pause で良いんでしょうか?
「マクロを中断する」という意味で「止める」と表現しているのであれば、end を使います。
待ち時間を指定せずに、一時的に処理を待たせることを指しているなら messagebox や inputbox が使えるかも。
http://ttssh2.sourceforge.jp/manual/ja/macro/command/end.html
http://ttssh2.sourceforge.jp/manual/ja/macro/command/messagebox.html
http://ttssh2.sourceforge.jp/manual/ja/macro/command/inputbox.html
2.16進を10進に変換するコマンド等をご存知ありませんか(例:1A→26)
こんな感じ。最終的に数値として扱いたいか、10進数の文字列として扱いたいかで変わってきます。
s16 = '0x' strconcat s16 '1a' ; s16 は '0x1a' str2int val s16 ; val は、数値の 26 int2str s10 val ; s10 は、文字列の '26'
16進表記の文字列の頭に付けるのは、'0x' の代わりに '$' でも大丈夫。
http://ttssh2.sourceforge.jp/manual/ja/macro/command/strconcat.html
http://ttssh2.sourceforge.jp/manual/ja/macro/command/str2int.html
http://ttssh2.sourceforge.jp/manual/ja/macro/command/int2str.html
http://ttssh2.sourceforge.jp/manual/ja/macro/syntax/formats.html