如何解决如何使用户编辑器等到用户输入窗口关闭
我有一些代码,用户必须在其中提供一些信息,并根据用户信息执行后续代码。 strong text 我们可以让emeditor等到用户窗口关闭。 strong textclipboardData.setData("Text","");
wnd = shell.FindWindow( "","Playlist" );
wnd.SetForeground();
Sleep( 1000 );
shell.SendKeys( "^a" );
Sleep( 100 );
shell.SendKeys( "^%c" );
Editor.newfile();
Sleep(500);
document.selection.Paste(eeCopyUnicode);
if( !editor.EnableTab ){
editor.EnableTab = true;
alert( "Please run this macro again." );
Quit();
}
**strong text**sFind = prompt( "This macro extracts lines that do contain any of the specified multiple strings separated by |:","" );**strong text**
if( sFind == "" ){
Quit();
}
var sArr = sFind.split("|");
batch_list = editor.filters;
for( i = 0; i < sArr.length; ++i ) {
batch_list.AddFind(sArr[i],0);
}
//document.selection.BatchFind(batch_list,eeFindExtract | eeFindLineOnly,0);
document.selection.BatchFind(batch_list,0);
document.selection.SelectAll(); // select all text
document.selection.Copy(eeCopyUnicode); // copy the seleciton to the Clipboard
WshShell = new ActiveXObject( "WScript.Shell" );
WshShell.Run ( "PotPlayerMini64.exe /clipboard" );
在上面的代码中,在我关闭提示窗口之前,先 strong文本,然后执行后续代码。我想在关闭提示窗口之前停止执行后续代码。强文本是可能的。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。