Code: Select all
WinActivate, ahk_class Notepad++
ControlGetFocus, Scintilla, ahk_class Notepad++
ControlGet, count, CurrentLine,, %Scintilla%
Code: Select all
WinActivate, ahk_class Notepad++
ControlGetFocus, Scintilla, ahk_class Notepad++
ControlGet, count, CurrentCol,, %Scintilla%
Code: Select all
WinActivate, ahk_class Notepad++
ControlGetFocus, Scintilla, ahk_class Notepad++
ControlGetText, text, %Scintilla%
Code: Select all
WinActivate, ahk_class Notepad++
ControlGetFocus, Scintilla, ahk_class Notepad++
ControlGet, ln, Line, 10, %Scintilla%
So, workaround:
Code: Select all
WinActivate, ahk_class Notepad++
ControlGetFocus, Scintilla, ahk_class Notepad++
ControlGetText, text, %Scintilla%
lines := StrSplit(text, "`r`n")
ln := lines[10]