#5279

Yutaka Emura
Keymaster

letmein7 wrote:
“Automatically clear search and file history on exit” option on emeditor 7 pro.?

thank you.

For search history, you can use the following macro, and assign this to run at the event of “Group Window Closed”. Unfortunately, file history cannot be cleared unless you check “Do no share process between documents” in the Advanced tab of Customize dialog box. If this is the case, you can uncomment the four lines in the code so all the file list will be also erased.


WshShell = new ActiveXObject( "WScript.Shell" );
//try { WshShell.RegDelete( "HKCUSoftwareEmSoftEmEditor v3Recent File List" ); } catch( e ){}
//try { WshShell.RegDelete( "HKCUSoftwareEmSoftEmEditor v3Recent Folder List" ); } catch( e ){}
//try { WshShell.RegDelete( "HKCUSoftwareEmSoftEmEditor v3Recent Font List" ); } catch( e ){}
//try { WshShell.RegDelete( "HKCUSoftwareEmSoftEmEditor v3Recent Insert List" ); } catch( e ){}
try { WshShell.RegDelete( "HKCUSoftwareEmSoftEmEditor v3CommonFind" ); } catch( e ){}
try { WshShell.RegDelete( "HKCUSoftwareEmSoftEmEditor v3CommonFindFlag" ); } catch( e ){}