Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

AutoHotkey scriptwindow as texteditor :)


  • Please log in to reply
No replies to this topic
HuBa
  • Members
  • 175 posts
  • Last active: Feb 13 2012 09:51 AM
  • Joined: 24 Feb 2007
If you think that text cannot be edited in the AutoHotkey scriptwindow, think again!

AutoHotkey can work as a texteditor :D

All you have to execute is a single line of code:
SendMessage, 0xCF, 0, 0, Edit1, ahk_class AutoHotkey  ; EM_SETREADONLY
This 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.