2024年5月22日 1:40 am #31779
Keymaster
いつもお世話になっております。江村です。
v24.1.901 以上では、Shell オブジェクトの GetKeyState メソッドが使えるようになりました。
例えば、Ctrl が押下されているかどうか調べるには、次のように書きます。
nStatus = shell.GetKeyState( 0x11 ); // CTRL key
if( nStatus < 0 ) {
alert( "the CTRL key is pressed" );
}
https://www.emeditor.org/ja/macro/shell/get_key_state.html
よろしくお願いいたします。