how to make user emeditor to wait till user input window is closed

100 views Asked by At

i have some code in which user has to give some information and based on the user information subsequent code will be executed. strong textcan we make emeditor to wait till the user window is closed.strong text

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" );

in the above code, strong textbefore i close prompt window subsequent code is getting executed. i want to stop execution of subsequent code, before prompt window is closed.strong text is it possible.

0

There are 0 answers