Page 1 of 1

How does Scite get the text between the specified StartPos and EndPos?

Posted: 01 Sep 2023, 13:24
by cgx5871
How does Scite get the text between the specified StartPos and EndPos?

Code: Select all

StartPos:=50
EndPos:=100
Str:=SCI_???(StartPos,EndPos)
I looked through the Scite api for a long time
No related ones were found.
Can anyone give me some help?

Re: How does Scite get the text between the specified StartPos and EndPos?

Posted: 02 Sep 2023, 16:47
by neogna2
I'm not sure if this is what you're asking for but Scintilla has
https://www.scintilla.org/ScintillaDoc.html#SCI_GETTEXTRANGE
which requires the use of a struct
https://www.scintilla.org/ScintillaDoc.html#Sci_TextRange

Re: How does Scite get the text between the specified StartPos and EndPos?

Posted: 02 Sep 2023, 23:05
by cgx5871
@neogna2I saw,
But I don't know how to use it in ahk.
It’s related to reading the buffer area. I don’t understand it at all.
This problem has troubled me for many days.
Can you help me write a sample code?

Re: How does Scite get the text between the specified StartPos and EndPos?

Posted: 05 Sep 2023, 04:04
by neogna2
Solved by teadrinker here viewtopic.php?p=537298#p537298