Spooky!!!
I used Begos simple scripting find:
- Code: Select all
UltraEdit.activeDocument.findReplace.find("WHATER_YOU_WANT");
and as UltraBoG described, the cursor is in the beginning of the selection.
And here is the spooky part - add a ueReOn:
- Code: Select all
UltraEdit.ueReOn();
UltraEdit.activeDocument.findReplace.find("WHATER_YOU_WANT");
even though we're not using Regex, suddenly the cursor is at the end of the selection. Go figure.
Default regex engine in scripting is perl, so if I add
- Code: Select all
UltraEdit.perlReOn();
UltraEdit.activeDocument.findReplace.find("WHATER_YOU_WANT");
again the cursor is at the beginning. Hmmm.
(btw in both cases I also tested with "UltraEdit.activeDocument.findReplace.regExp=false;" just to be sure regex was not on. Same result).