I'd like to use the macro (javascript) to determine the character code of the cursor and branch the conditions, but I can't find it even after searching, so please let me know.
emeditor
Write the macro as follows: ch
is populated with characters.
document.selection.Collapse();// Unselect if a selection exists
varx = document.selection.GetActivePointX(eePosLogical);
variable = document.selection.GetActivePointY(eePosLogical);
var str = document.GetLine(y);
varch = str.charAt(x-1);
alert(ch);// Rewrite this line
© 2025 OneMinuteCode. All rights reserved.