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.
if (UltraEdit.document.length > 0) // Is any file opened?
// Get size of file in bytes.
var nFileSize = UltraEdit.activeDocument.fileSize;
// creates a float result instead of an integer result when file
// size is odd which must be avoided as result must be an integer.
var nHalfSize = (nFileSize % 2) ? (nFileSize+1)/2 : nFileSize/2;