Add(MemoryStream,14189995,357,350)
{
Point(Memory)
Point(doSize)
Point(doPosition)
}
Add(MainForm,2953706,294,91)
{
Position=1
link(onCreate,9275186:doEnum,[])
}
Add(StreamConvertor,7137058,210,364)
{
Mode=7
link(onResult,14189995:doCopy,[(300,370)(300,356)])
}
Add(Button,8097177,322,574)
{
Left=20
Top=25
link(onClick,8708665:doSendMessage,[])
}
Add(WinEnum,9275186,406,105)
{
Point(GetActiveWindow)
link(onFindWindow,15613290:In,[])
}
Add(WinTools,874314,406,175)
{
Point(FileName)
Point(doForeground)
link(Handle,3830185:Var2,[])
}
Add(FilePartElm,748950,413,224)
{
link(onPart,12592882:doModify,[])
link(FileName,874314:FileName,[])
}
Add(Case,2538510,497,224)
{
Value=String(notepad++.exe)
link(onTrue,8069721:doEvent1,[])
AddHint(-71,38,96,13,Value)
}
Add(LineBreak,3184445,371,224)
{
link(Out,748950:doPart,[])
Primary=[15613290,77,-119]
}
Add(StrCase,12592882,455,224)
{
link(onModify,2538510:doCase,[])
}
Add(LineBreak,12066020,357,119)
{
Caption="stop"
link(Out,9275186:doStop,[])
Primary=[1615467,217,112]
}
Add(FindWindow,4463903,623,231)
{
@Hint=#21:Редактор с подсветкой|
ClassName="Scintilla"
SkipParam=1
link(ParentHandle,3830185:Var3,[(629,159)])
AddHint(49,10,51,13,ClassName)
}
Add(Hub,8069721,546,231)
{
link(onEvent1,1615467:In,[])
link(onEvent2,4463903:doFindChild,[])
}
Add(GetDataEx,3830185,406,154)
{
link(Data,9275186:Handle,[])
}
Add(SendMessage,8708665,378,574)
{
WParam=10
Point(Message)
link(Handle,15073597:Var1,[(184,310)])
link(LParam,14189995:Memory,[(398,478)(377,478)])
link(Message,15350225:Text,[])
}
Add(DoData,4426896,210,413)
{
Data=Integer(0)
link(onEventData,14189995:doPosition,[(300,419)(300,377)])
}
Add(GetDataEx,15073597,623,294)
{
link(Data,4463903:Handle,[])
}
Add(Hub,15267767,168,364)
{
OutCount=4
link(onEvent1,7137058:doConvert,[])
link(onEvent2,4426896:doData,[(196,377)(196,419)])
}
Add(Edit,7331696,77,357)
{
Width=265
Text=""
link(onEnter,15267767:doEvent1,[])
}
Add(VisualStrings,15350225,399,539)
{
Lines=#4:2001|
Width=39
}
Тогда как, например, установка позиции нормально работает:
Add(MainForm,2953706,294,91)
{
Position=1
link(onCreate,9275186:doEnum,[])
}
Add(WinEnum,9275186,406,105)
{
Point(GetActiveWindow)
link(onFindWindow,15613290:In,[])
}
Add(WinTools,874314,406,175)
{
Point(FileName)
Point(doForeground)
link(Handle,3830185:Var2,[])
}
Add(FilePartElm,748950,413,224)
{
link(onPart,12592882:doModify,[])
link(FileName,874314:FileName,[])
}
Add(Case,2538510,497,224)
{
Value=String(notepad++.exe)
link(onTrue,8069721:doEvent1,[])
AddHint(-71,38,96,13,Value)
}
Add(LineBreak,3184445,371,224)
{
link(Out,748950:doPart,[])
Primary=[15613290,77,-119]
}
Add(StrCase,12592882,455,224)
{
link(onModify,2538510:doCase,[])
}
Add(LineBreak,12066020,357,119)
{
Caption="stop"
link(Out,9275186:doStop,[])
Primary=[1615467,217,112]
}
Add(FindWindow,4463903,623,231)
{
@Hint=#21:Редактор с подсветкой|
ClassName="Scintilla"
SkipParam=1
link(ParentHandle,3830185:Var3,[(629,159)])
AddHint(49,10,51,13,ClassName)
}
Add(Hub,8069721,546,231)
{
link(onEvent1,1615467:In,[])
link(onEvent2,4463903:doFindChild,[])
}
Add(GetDataEx,3830185,406,154)
{
link(Data,9275186:Handle,[])
}
Add(GetDataEx,15073597,623,294)
{
link(Data,4463903:Handle,[])
}
Add(Button,8097177,665,378)
{
Left=20
Top=25
link(onClick,16138222:doSendMessage,[])
}
Add(SendMessage,16138222,721,378)
{
WParam=100
Point(Message)
link(Handle,15073597:Var2,[(727,340)(629,340)])
link(Message,12188714:Text,[])
}
Add(VisualStrings,12188714,742,343)
{
Lines=#4:2025|
Width=39
}
Документация отсюда: https://www.scintilla.org/ScintillaDoc.html#SCI_REPLACESEL
Константы тут: http://freesourcecode.net/cprojects/106750/sourcecode/Scintilla.h
Что я делаю неправильно, как указать ссылку на текст для вставки?