0

我有一些代码,用户必须在其中提供一些信息,并根据用户信息执行后续代码。强文本我们可以让编辑器等到用户窗口关闭。强文本

clipboardData.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,0);
}
//document.selection.BatchFind(batch_list, eeFindExtract | eeFindLineOnly,0);
document.selection.BatchFind(batch_list,  eeFindExtract | eeFindLineOnly,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" );

在上面的代码中,在我关闭提示窗口之前的强文本后续代码正在执行。我想在提示窗口关闭之前停止执行后续代码。强文本是可能的。

4

0 回答 0