「現在の文書のコピーを新規文書として作成」マクロ

投稿者: takane562 声3 投稿

色々と調べてたら 「現在の文書のコピーを新規文書として作成」というマクロ↓↓ document.selection.SelectAll(); document.selection.Copy() WshShell = new ActiveXObject( "WScript.Shell" ); WshShell.CurrentDirectory = "D:Program FilesEmEditor"; WshShell.Run( "emeditor.exe -i" ); を発見して実行してみましたが・・・ エラーを特定できません ファイル C:Documents and Setti...現在の文書のコピーを新規文書として作成.jsee 行    4 というエラー表示されてできませんでした。 このマクロを修正して現在のEm-Editorで実行可能なマクロをどなたか作っていただければ幸いです。
document.selection.SelectAll(); document.selection.Copy(); editor.ExecuteCommandByID(4123);
ではいかがでしょう?
Aye Wongさん、返信ありがとうございます。 できました~^^ ご親切にありがとうございます。

このトピックの投稿: 3