Вверх ↑
Ответов: 784
Рейтинг: 168
#1: 2023-04-14 07:49:19 ЛС | профиль | цитата
georgmann писал(а):
Вот такая проблема.


Add(MainForm,7670060,77,28)
{
Width=477
Caption="Сократитель ссылок используя API "
}
Add(MST_ArrayRows,5429603,511,189)
{
MSTControl="asd"
}
Add(MTStrTbl,6542947,245,315)
{
Top=40
Width=461
Height=221
Align=5
Name="asd"
Columns=#12:long_url=300|12:shortenedUrl|
}
Add(MST_Load,11685183,252,84)
{
ColNameHeader=1
MSTControl="asd"
link(onLoad,16128552:doEvent1,[(298,90)(298,118)])
}
Add(IndexToChanel,8532413,126,77)
{
Count=7
link(onEvent2,13303500:doExecute,[])
link(onEvent3,5897095:doMessage,[(193,97)(193,125)])
link(onEvent4,3379452:doExecute,[(186,104)(186,167)])
link(onEvent6,5122062:doEvent1,[(179,118)(179,237)])
link(onEvent7,15352547:doStop,[(172,125)(172,265)])
}
Add(ODialog,13303500,203,84)
{
link(onExecute,11685183:doLoad,[])
}
Add(SDialog,3379452,203,161)
{
link(onExecute,184413:doSave,[])
}
Add(MST_Save,184413,252,161)
{
SaveColumn=1
SaveColProp=1
MSTControl="asd"
}
Add(MST_ColAction,5297033,791,252)
{
Action=9
Index=-2
MSTControl="asd"
}
Add(CounterEx,8899381,420,252)
{
Min=-1
Max=1000
Default=-1
Point(doReset)
Point(onSet)
link(onNext,6855320:##add,[])
}
Add(MenuEx,8319746,70,77)
{
Menu=#13:Список ссылок|1:(|9:Загрузить|8:Очистить|9:Сохранить|1:)|10:Обработать|1:(|5:Старт|4:Стол|1:)|
GutterLineOn=1
Bitmaps=[]
Point(doEnablIdx)
link(MenuItemIdx,8532413:doEvent,[])
}
Add(MST_RowAction,791201,735,252)
{
Action=2
MSTControl="asd"
link(onChange,5297033:doColAction,[])
}
Add(MST_Clear,14408073,252,119)
{
MSTControl="asd"
link(onChange,16128552:doEvent2,[])
}
Add(StatusBar,15598512,833,308)
{
Panels=#14:Всего - 0=200|19:Обработано - 0=200|
}
Add(MT_Add,8229165,770,308)
{
Data=Integer(0)
link(onAdd,8673821:doWork2,[])
}
Add(StrCat,4937689,728,308)
{
Str1="Всего - "
link(onStrCat,8229165:doAdd,[])
link(Str2,791201:Count,[])
}
Add(MT_Add,10775179,770,357)
{
Data=Integer(1)
link(onAdd,8673821:doWork3,[(816,363)])
}
Add(StrCat,16506296,728,357)
{
Str1="Обработано - "
link(onStrCat,10775179:doAdd,[])
link(Str2,11331378:Result,[(741,348)(720,348)(720,397)(678,397)])
}
Add(HubEx,8673821,812,308)
{
link(onEvent,15598512:doText,[])
}
Add(Hub,2520169,679,308)
{
link(onEvent1,4937689:doStrCat,[])
link(onEvent2,1551654:doWork1,[(711,321)])
}
Add(LineBreak,13517239,623,371)
{
link(Out,11331378:doClear,[(662,377)(662,370)])
Primary=[13555651,-273,-259]
}
Add(Label,7002827,126,28)
{
Width=461
Height=40
Align=2
Caption=""
AutoSize=1
}
Add(Message,5897095,203,119)
{
Message="Вы уверены?"
Caption="Предупреждение"
Type=2
Point(onYES)
link(onYES,14408073:doClear,[(242,132)(242,125)])
}
Add(Edit,7065250,252,203)
{
Left=215
Top=10
Width=45
Text="500"
DataType=2
ClearAfterEnter=1
}
Add(Timer,15352547,322,252)
{
Interval=0
Enable=1
Point(doInterval)
Point(doAutoStop)
link(onTimer,8899381:doNext,[])
}
Add(Hub,5122062,196,231)
{
OutCount=4
link(onEvent1,16128552:doEvent3,[(291,237)(291,132)])
link(onEvent2,2868133:doData,[(228,244)(228,279)])
link(onEvent3,7089343:doData,[(221,251)(221,370)])
link(onEvent4,15352547:doTimer,[])
}
Add(DoData,2868133,252,273)
{
link(onEventData,15352547:doInterval,[(291,279)(291,272)])
link(Data,7065250:Text,[])
}
Add(DoData,7089343,259,364)
{
link(onEventData,15352547:doAutoStop,[(305,370)(305,279)])
link(Data,6542947:Count,[])
}
Add(Hub,16128552,315,112)
{
InCount=3
OutCount=3
link(onEvent1,13555651:In,[])
link(onEvent2,16599441:In,[])
link(onEvent3,8899381:doReset,[(396,132)(396,265)])
}
Add(Label,11383313,175,28)
{
Left=15
Top=10
Width=198
Height=20
Font=[MS Sans Serif,10,0,0,1]
Caption="Время между запросами в мс."
}
Add(Math,11331378,672,357)
{
Op2=1
Point(doClear)
link(onResult,1551654:doWork2,[])
}
Add(MultiElementEx,6855320,511,252)
{
Mode=1
link(Array,5429603:Strings,[])
link(onResult,5208174:doEvent1,[])
link(onDelete,4627883:doData,[(550,265)(550,293)(501,293)(501,314)])
}
BEGIN_SDK
Add(EditMultiEx,3353936,21,21)
{
WorkCount=#5:##add|8:##delete|
EventCount=#8:onResult|8:onDelete|
VarCount=#12:##eventIndex|7:##count|
DataCount=#5:Array|0:|
Width=601
Point(##add)
Point(##delete)
Point(##eventIndex)
Point(##count)
link(##add,5300366:doValue,[(39,27)(39,97)])
}
Add(MT_MTArrayRW,3196305,119,91)
{
link(onRead,14096213:doSeparateMT,[])
link(Array,3353936:Array,[(125,82)(27,82)])
link(Index,6092989:Var2,[])
}
Add(MT_MultiData,14096213,168,91)
{
Count=1
link(onData1,8732164:doValue,[])
}
Add(HTTP_Get,4695709,336,91)
{
link(onDownload,2298697:doConvert,[])
link(onStop,3353936:onDelete,[(557,118)(557,34)])
}
Add(StreamConvertor,2298697,392,98)
{
Mode=6
link(onResult,16216440:doAdd,[])
}
Add(FormatStr,8020984,266,91)
{
DataCount=1
Mask="https://linksly.co/api?api=ebe9fdbf04176bcb0a7d727e9c8857f8da8b5deb&url=%1&format=text"
link(onFString,4695709:doDownload,[])
}
Add(Memory,8732164,217,91)
{
link(onData,8020984:doString,[])
}
Add(MT_AddData,16216440,448,98)
{
Count=3
InputMT=3
link(onAdd,3353936:onResult,[(515,104)(515,27)])
link(Data1,6092989:Var3,[(454,75)])
link(Data2,8732164:Value,[(461,89)(384,89)(384,131)(223,131)])
}
Add(GetDataEx,6092989,126,70)
{
Angle=3
link(Data,5300366:Value,[(111,75)(111,131)(62,131)])
}
Add(Memory,5300366,56,91)
{
link(onData,3196305:doRead,[])
}
END_SDK
Add(DeferredEvent,6769449,560,308)
{
InData=0
link(onDeferredEvent,6855320:##delete,[(599,314)(599,300)(494,300)(494,265)])
}
Add(DoData,4627883,511,308)
{
link(onEventData,6769449:doDeferredEvent,[])
link(Data,6855320:##eventIndex,[])
}
Add(Hub,5208174,595,252)
{
OutCount=3
link(onEvent1,791201:doRowAction,[])
link(onEvent2,11331378:doOperation,[(620,265)(620,363)])
}
Add(LineBreak,5892367,630,308)
{
link(Out,2520169:doEvent1,[])
Primary=[16599441,-287,-189]
}
Add(HubEx,1551654,707,357)
{
link(onEvent,16506296:doStrCat,[])
}

карма: 15

0