Well, I thought I got almost everything I wanted.
Ow,
Find or
Search Function is needed.
Maybe the function should return the position of the found word.
To make it useful,
GetCurrentPosition should also be requried, I think.
Cursor Positions could be expressed by [(line, colum)] or [the same way you already presented].
If possible, Edit control way would also be great as in AHK Help below.
Quote:
LineCount: Sets OutputVar to be the number of lines in an Edit control. All Edit controls have at least 1 line, even if the control is empty.
CurrentLine: Sets OutputVar to be the line number in an Edit control where the caret (insert point) resides. The first line is 1. If there is text selected in the control, OutputVar is set to the line number where the selection begins.
CurrentCol: Sets OutputVar to be the column number in an Edit control where the caret (text insertion point) resides. The first column is 1. If there is text selected in the control, OutputVar is set to the column number where the selection begins.
Line, N: Sets OutputVar to be the text of line N in an Edit control. Line 1 is the first line. Depending on the nature of the control, OutputVar might end in a carriage return (`r) or a carriage return + linefeed (`r`n). If the specified line number is blank or does not exist, ErrorLevel is set to 1 and OutputVar is made blank.
I don't know how tricky it is, but when you find time, please consider it.