AutoHotkey can work as a texteditor
All you have to execute is a single line of code:
SendMessage, 0xCF, 0, 0, Edit1, ahk_class AutoHotkey ; EM_SETREADONLYThis unlocks the readonly state of the textarea.
You can simply restore it to readonly:
SendMessage, 0xCF, 1, 0, Edit1, ahk_class AutoHotkey ; EM_SETREADONLY
I know that the usefulness of this script can be questioned, but this proof-of-concept shows the possibilities of the window messages and AHK.
The idea came from this topic.