Warning: Undefined array key 1 in /home/d94d2eh6/infrapod.net/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 12
Warning: Undefined array key 2 in /home/d94d2eh6/infrapod.net/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 15
Warning: Undefined array key 3 in /home/d94d2eh6/infrapod.net/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 18
Warning: Undefined array key 4 in /home/d94d2eh6/infrapod.net/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 21
Warning: Undefined array key 1 in /home/d94d2eh6/infrapod.net/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 24
Warning: Undefined array key 2 in /home/d94d2eh6/infrapod.net/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 27
Warning: Undefined array key 3 in /home/d94d2eh6/infrapod.net/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 30
Warning: Undefined array key 4 in /home/d94d2eh6/infrapod.net/public_html/wp-content/themes/sango-theme-poripu/library/functions/prp_content.php on line 33
構築や試験中、TeraTermマクロを動かしながら別の作業をしていたら不意にTeraTermマクロのウィンドウがアクティブになり誤ってキー入力してしまったことはありませんか?ぼくは頻繁にありました。
基本的にマクロを動かしている時はじっとしているのが一番ですが、誰しも間違いはあるものです。特に他人にTeraTermマクロを使わせる場合、そのようなトラブルを未然に防ぐためにキーボード入力を抑制する、というのはひとつの策と言えます。
キーボード入力抑制の方法
キーボード入力を抑制するためには enablekeyb コマンドを使います。このコマンドはconnectが完了してから使うことができます。引数に0を指定するとキーボード入力を抑止し、1を指定すると解除されます。
connect host ; キーボード入力抑制開始 enablekeyb 0 ; 何か処理する ; キーボード入力抑制解除 enablekeyb 1