現在のフォアグラウンド ウィンドウを取得します。
wnd = shell.ForegroundWindow;
wnd = shell.ForegroundWindow
wnd = shell.FouregroundWindow;
str = wnd.Caption;
alert( str );
wnd = shell.FouregroundWindow
str = wnd.Caption
alert str
EmEditor Professional Version 7.00 以上で利用できます。