Welcome to the IDM Forum. This forum is meant as a user-to-user support mechanism where users can share knowledge and tips for all IDM software.
Since these forums are user-to-user based, IDM does not regularly read or reply to the posts in this forum. For problem reports, suggestions, or feature requests, you must email us directly. Our trained technical support staff answers most inquiries within 30 minutes.
// Remember the current active file before real start of the script.
var CurrentFileIndex = getActiveDocumentIndex();
// Your script code.
// Make the file before script execution again the active file.
if (CurrentFileIndex >= 0 && CurrentFileIndex < UltraEdit.document.length) UltraEdit.document[CurrentFileIndex].setActive();