I am having trouble with UltraEdit.activeDocument.selection since upgrading to UE 13.10. And the problem persist in UE 13.10+1. I have reported my problem to IDM Support, but they are having problems recreating it. So I am really looking for somebody to confirm it as a general problem - or a problem only affecting me.
Ok, here goes:
I'm using this simple little script:
I then assign it to a hot key (Shift+Ctrl+T).
Then I switch to another file containing
With the keyboard (shift + right arrow) I select the word "UltraEdit" and then invoke the script with hot key Shift+Ctrl+T. Result as expected:
I then ctrl+right arrow forward in the text and selects the word "replacement" with shift+right arrow. I then invoke the script, again using the hot key - result:
Hmm, not as expected "NOTEPAD and" was in the exact position of the word "replacement" BEFORE the script was invoked initially.
This is quite annoying as I have a number of scripts assigned to hot keys and I navigate only using the keyboard.
If I do anything to bring the document out of focus, and back into focus, I can now select "replacement" and the correct result appears:
It is as a buffer or cache of some kind is not refreshed after a UltraEdit.activeDocument.write and only refresh when bringing the document back into focus.
Ok, here goes:
I'm using this simple little script:
Code: Select all
var selTxt = UltraEdit.activeDocument.selection;
UltraEdit.activeDocument.write("[[[[[[[["+selTxt+"]]]]]]]]");
Then I switch to another file containing
Code: Select all
UltraEdit is an excellent replacement for NOTEPAD and a lot more...
Code: Select all
[[[[[[[[UltraEdit]]]]]]]] is an excellent replacement for NOTEPAD and a lot more...
Code: Select all
[[[[[[[[UltraEdit]]]]]]]] is an excellent [[[[[[[[NOTEPAD and]]]]]]]] for NOTEPAD and a lot more...
This is quite annoying as I have a number of scripts assigned to hot keys and I navigate only using the keyboard.
If I do anything to bring the document out of focus, and back into focus, I can now select "replacement" and the correct result appears:
Code: Select all
[[[[[[[[UltraEdit]]]]]]]] is an excellent [[[[[[[[replacement]]]]]]]] for NOTEPAD and a lot more...