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.activeDocument.isSel()) { /* is anything selected ? */
var isThisHex = UltraEdit.activeDocument.selection; /* get selected text */
try {
var decNumber = parseInt( isThisHex, 16 ); /* Try and convert with standard javascript parseInt */
if(String(decNumber)=="NaN") {
/* do nothing if it can't be converted - Insert your own error handling */
}
else {
UltraEdit.activeDocument.write(String(decNumber)); /* write the dec number back into active document */
}
}
catch (conversionError) {
/* do nothing if it can't be converted - Insert your own error handling */
}
}
// When selected the hex below will be converted into:
// FFFF -> 65535
// 0xFFFF -> 65535
