Вверх ↑
Ответов: 263
Рейтинг: 18
#1: 2017-11-05 18:53:39 ЛС | профиль | цитата
Нарисовал эту утилиту, пока запиливал автоматизацию по работе с Radmin-ом и DigiTV Studio. Нужно было многократно искать кнопки, отрабатывать нажатия на них, так и появилась эта утилитка, моя помошница.
Утилита позволяет при помощи мыши «захватить» окно и получить сведения. Класс, имя, хэндл, родительский хэндл, позицию в списке дочерних окон, если таковые имеются. Плюс можно проводить небольшие манипуляции с окном. Послать левый клик мыши, сделать окно Visible\Invisble и enable\disable.
схема

Add(DoData,11326602,2183,602)
{
Data=String(Основная форма:)
link(onEventData,8935700:doWork3,[(2242,608)])
}
Add(ChildPanelEx,8573564,112,294)
{
link(onMouseDown,7796314:doEvent1,[])
link(onMouseUp,10571881:doStop,[(162,307)(162,314)])
}
BEGIN_SDK
Add(EditMultiEx,14926539,21,21)
{
EventCount=#11:onMouseDown|9:onMouseUp|
VarCount=#4:Var2|
Width=370
Height=235
link(Var2,2110201:Var2,[(27,185)(139,185)])
}
Add(Panel,9352803,63,210)
{
Left=2
Top=2
Width=400
Height=52
Layout="parent.001"
}
Add(MouseEvent,13849680,119,49)
{
Point(Handle)
}
Add(Label,6639085,119,91)
{
Left=12
Top=22
Width=9
Height=17
Caption="x"
link(Text,13849680:MouseX,[])
}
Add(Label,16696730,126,98)
{
Left=12
Top=34
Width=9
Height=17
Caption="y"
link(Text,13849680:MouseY,[])
}
Add(Hub,329771,91,91)
{
OutCount=3
link(onEvent1,6639085:doText,[])
link(onEvent2,16696730:doText,[])
link(onEvent3,9445656:doWinInfo,[(117,111)(117,167)])
}
Add(Timer,5156076,49,91)
{
Interval=100
link(onTimer,329771:doEvent1,[])
}
Add(WinInfo,9445656,154,161)
{
Point(ClientWidth)
Point(ClientHeight)
link(onWinInfo,13355009:doEvent1,[])
link(Handle,11937418:Var2,[])
}
Add(GetDataEx,2110201,133,139)
{
link(Data,13849680:Handle,[])
}
Add(Label,3459126,280,63)
{
Left=125
Top=6
link(Text,9445656:ClassName,[(286,52)(193,52)(193,202)(160,202)])
}
Add(Label,4166633,280,114)
{
Left=125
Top=20
link(Text,11937418:Var3,[(286,101)(201,101)(201,144)])
}
Add(Label,10449337,280,175)
{
Left=125
Top=34
link(Text,9445656:Caption,[(286,156)(201,156)(201,212)(167,212)])
}
Add(Hub,13355009,217,161)
{
OutCount=3
link(onEvent1,3459126:doText,[(242,167)(242,69)])
link(onEvent2,4166633:doText,[(251,174)(251,120)])
link(onEvent3,10449337:doText,[])
}
Add(GetDataEx,11937418,154,139)
{
Angle=3
link(Data,2110201:Var3,[])
}
Add(Label,4921657,105,322)
{
Left=3
Top=22
Width=12
Height=17
Caption="x:"
}
Add(Label,8723969,159,323)
{
Left=3
Top=34
Width=12
Height=17
Caption="y:"
}
Add(Label,15055634,210,322)
{
Left=83
Top=20
Width=41
Height=17
Caption="Handle:"
}
Add(Label,16672474,266,322)
{
Left=81
Top=34
Width=43
Height=17
Caption="Caption:"
}
Add(Label,3988197,322,322)
{
Left=65
Top=6
Width=60
Height=17
Caption="ClassName:"
}
Add(Button,12552102,329,28)
{
Left=3
Top=2
Hint="нажать и не отпуская перемещать мышь для "захвата" окна"
Caption="Захват"
Point(onMouseDown)
Point(onMouseUp)
link(onMouseDown,14926539:onMouseDown,[(375,41)(375,27)])
link(onMouseUp,14926539:onMouseUp,[(383,48)(383,34)])
}
END_SDK
Add(MainForm,2953706,63,133)
{
Width=421
Height=556
Caption="Информация об окнах"
Position=1
}
Add(Timer,10571881,203,301)
{
Interval=100
Enable=1
Point(onStop)
link(onTimer,15681815:doData,[])
link(onStop,13990695:doEvent1,[(248,314)(248,363)])
}
Add(ChangeMon,15681815,266,301)
{
link(onData,4999073:doEvent1,[])
link(Data,16036269:Var3,[(272,203)])
}
Add(HubEx,8782812,488,357)
{
link(onEvent,16397730:doRedraw,[])
}
Add(Hub,6774152,350,301)
{
OutCount=3
link(onEvent1,8616526:doWork2,[])
link(onEvent2,9386807:doWork3,[(396,314)])
link(onEvent3,203949:doWork2,[])
}
Add(Memory,1735864,504,217)
{
}
Add(DoData,7806982,203,217)
{
link(onEventData,1217456:doWork2,[])
link(Data,16036269:Var2,[])
}
Add(WinTools,16397730,504,329)
{
Point(doRedraw)
link(Handle,16606052:Var2,[])
}
Add(Hub,7796314,168,294)
{
link(onEvent1,7806982:doData,[(196,300)(196,223)])
link(onEvent2,10571881:doTimer,[])
}
Add(HubEx,9386807,392,217)
{
link(onEvent,1735864:doValue,[])
}
Add(WinInfo,1714651,399,315)
{
Point(Left)
Point(Top)
Point(Width)
Point(Height)
link(onWinInfo,887494:doTimer,[(460,321)(460,399)(387,399)(387,489)])
link(Handle,14866356:Var1,[(405,260)])
}
Add(PointXY,12997976,413,427)
{
link(X,1714651:Left,[])
link(Y,1714651:Top,[])
}
Add(GetDataEx,16036269,203,198)
{
Angle=3
link(Data,8573564:Var2,[(154,203)(154,336)(118,336)])
}
Add(Hub,13990695,308,357)
{
OutCount=3
link(onEvent1,8782812:doWork2,[])
link(onEvent2,5221310:doClear,[])
link(onEvent3,14404215:doFind,[(337,377)(337,531)])
}
Add(WinInfo,1482271,581,308)
{
Point(ParentHandle)
Point(Left)
Point(Top)
Point(Width)
Point(Height)
Point(ClientWidth)
Point(ClientHeight)
link(onWinInfo,6114412:doEvent1,[])
link(Handle,6511472:Var2,[])
}
Add(MTStrTbl,14109818,203,70)
{
Left=2
Top=226
Width=400
Height=263
Name="1"
Hint="список дочерних окон"
Layout="001"
HeightScale=100
Columns=#4:№=28|13:ClassName=100|9:Handle=80|18:Caption=170 |
link(onClick,9995257:doSeparateMT,[(244,76)(244,116)(191,116)(191,132)])
}
Add(Hub,6114412,686,308)
{
OutCount=7
link(onEvent1,26639:doClear,[])
link(onEvent2,8436177:doStrCat,[])
link(onEvent3,13311049:doStrCat,[])
link(onEvent4,9883766:doStrCat,[])
link(onEvent5,5689966:doStrCat,[])
link(onEvent6,9457768:doString,[(721,349)(721,384)])
link(onEvent7,29923:doString,[(763,356)(763,433)])
}
Add(StrCat,8436177,728,315)
{
Str1="ClassName: "
link(onStrCat,11750781:doWork2,[])
link(Str2,5997523:Var3,[(741,296)(668,296)(668,367)])
}
Add(StrCat,7058463,2090,595)
{
Str1="Дочерняя форма №"
link(onStrCat,8088677:doEvent1,[])
}
Add(StrCat,9883766,812,329)
{
Str1=" Caption: "
link(onStrCat,7296946:doWork2,[])
link(Str2,6500115:Var3,[(825,288)(660,288)(660,352)])
}
Add(StrCat,5689966,854,336)
{
Str1=" Родитель: "
link(onStrCat,11226076:doWork2,[])
link(Str2,4331740:Var3,[(867,279)(676,279)(676,377)])
}
Add(Memo,26639,938,301)
{
Left=2
Top=55
Width=400
Height=169
Hint="информация о "захваченном" окне"
Layout="001"
ScrollBars=3
ReadOnly=0
}
Add(StrCat,13311049,770,322)
{
Str1=" Handle: "
link(onStrCat,808970:doWork2,[])
link(Str2,8671692:Var2,[])
}
Add(GetDataEx,6511472,581,255)
{
Angle=3
link(Data,13667125:Var3,[])
}
Add(HubEx,11750781,913,315)
{
Angle=3
link(onEvent,26639:doAdd,[(917,307)])
}
Add(HubEx,808970,913,322)
{
Angle=3
link(onEvent,11750781:doWork3,[])
}
Add(HubEx,7296946,913,329)
{
Angle=3
link(onEvent,808970:doWork3,[])
}
Add(FormatStr,9457768,777,378)
{
DataCount=3
Mask="x: %1 ширина: %2 клиентская: %3"
link(onFString,11702491:doWork2,[])
link(Str1,1482271:Left,[(783,367)(608,367)])
link(Str2,1482271:Width,[(790,367)(622,367)])
link(Str3,1482271:ClientWidth,[(797,367)(636,367)])
}
Add(HubEx,11226076,913,336)
{
Angle=3
link(onEvent,7296946:doWork3,[])
}
Add(FormatStr,29923,826,427)
{
DataCount=3
Mask="y: %1 высота: %2 клиентская: %3"
link(onFString,10561061:doWork2,[])
link(Str1,1482271:Top,[(832,417)(615,417)])
link(Str2,1482271:Height,[(839,417)(629,417)])
link(Str3,1482271:ClientHeight,[(846,417)(643,417)])
}
Add(HubEx,11702491,913,378)
{
Angle=3
link(onEvent,11226076:doWork3,[])
}
Add(VBoxLayout,11797834,63,203)
{
Name="001"
Space=2
Padding=2
}
Add(FindWindow,14404215,574,525)
{
SkipParam=2
link(onFind,11147663:doCompare,[])
link(Caption,13337756:Var2,[])
}
Add(GetDataEx,6500115,588,347)
{
link(Data,1482271:Caption,[])
}
Add(If_else,11147663,637,525)
{
Op2=Integer(0)
link(onTrue,1315945:doWork2,[])
link(onFalse,10629810:doCompare,[(685,538)(685,552)])
}
Add(If_else,10629810,700,546)
{
Type=5
link(onTrue,1315945:doWork3,[(748,552)])
link(onFalse,15159240:doStrCat,[(744,559)(744,608)])
link(Op1,14404215:Handle,[(706,514)(620,514)(620,570)(580,570)])
link(Op2,4663257:Var2,[])
}
Add(GetDataEx,13667125,553,255)
{
Angle=3
link(Data,14866356:Var3,[])
}
Add(FindWindow,3765543,791,525)
{
SkipParam=1
link(onFind,8326643:doCompare,[])
link(ClassName,4607319:Var2,[])
}
Add(GetDataEx,5997523,581,362)
{
link(Data,1482271:ClassName,[])
}
Add(If_else,8326643,854,525)
{
Type=5
Op2=Integer(0)
link(onTrue,4504615:doData,[])
link(onFalse,10697731:doStrCat,[(898,538)(898,573)])
link(Op1,3765543:Handle,[(860,514)(837,514)(837,569)(797,569)])
link(Op2,5820687:Var2,[])
}
Add(HubEx,1315945,744,525)
{
link(onEvent,3765543:doFind,[])
}
Add(GetDataEx,4663257,707,498)
{
Angle=3
link(Data,13667125:Var2,[(559,503)])
}
Add(Hub,3594430,973,567)
{
InCount=2
OutCount=3
link(onEvent1,2357018:doWork3,[(999,573)])
link(onEvent2,9025114:doReset,[(1053,580)(1053,643)])
link(onEvent3,16027179:doEnumChildWindows,[(997,587)(997,643)])
}
Add(MST_Clear,5221310,343,364)
{
MSTControl="1"
}
Add(WinEnum,16027179,1008,616)
{
VisibleOnly=1
Point(doEnumChildWindows)
Point(onEnumChildWindows)
Point(ParentHandle)
link(onEndEnum,11217749:doWork2,[(1468,629)(1468,734)])
link(onEnumChildWindows,13247270:doEvent1,[])
link(ParentHandle,5820687:Var3,[(1021,503)])
}
Add(GetDataEx,5820687,861,498)
{
Angle=3
link(Data,4663257:Var3,[])
}
Add(MST_RowAction,9515222,1176,679)
{
MSTControl="1"
}
Add(CounterEx,9025114,1120,630)
{
Min=-1
Max=1000
Default=-1
Point(doReset)
}
Add(Hub,13247270,1071,630)
{
link(onEvent1,9025114:doNext,[])
link(onEvent2,8923427:doAdd,[(1103,643)(1103,685)])
}
Add(MT_Add,8923427,1120,679)
{
InputMT=1
link(onAdd,9515222:doRowAction,[])
link(Data,9025114:Count,[])
}
Add(Hub,4999073,315,301)
{
link(onEvent1,6774152:doEvent1,[])
link(onEvent2,1482271:doWinInfo,[(471,314)(471,314)])
}
Add(MT_MultiData,9995257,203,126)
{
Count=3
Point(Data)
link(onData3,14877233:doEvent1,[])
link(Data,14109818:Select,[])
}
Add(Hub,7962996,322,147)
{
InCount=2
OutCount=3
link(onEvent1,1217456:doWork1,[(363,153)])
link(onEvent2,203949:doWork1,[(375,160)])
link(onEvent3,2193180:doTimer,[(384,167)(384,181)])
}
Add(HubEx,1217456,359,217)
{
link(onEvent,9386807:doWork2,[])
}
Add(Timer,2193180,399,175)
{
Interval=250
Enable=1
AutoStop=1
link(onTimer,8616526:doWork1,[(459,181)])
}
Add(StrCat,15159240,756,602)
{
Str1="Основная форма по Caption: "
link(onStrCat,3594430:doEvent2,[(950,608)(950,580)])
link(Str2,13337756:Var3,[(769,486)])
}
Add(GetDataEx,13337756,588,481)
{
link(Data,6500115:Var2,[])
}
Add(StrCat,10697731,910,567)
{
Str1="Основная форма по ClassName: "
link(onStrCat,3594430:doEvent1,[])
link(Str2,4607319:Var3,[(923,494)])
}
Add(GetDataEx,4607319,798,489)
{
Angle=3
link(Data,5997523:Var2,[(587,494)])
}
Add(HubEx,10561061,913,427)
{
Angle=3
link(onEvent,11702491:doWork3,[])
}
Add(Memory,7794618,1120,525)
{
link(onData,7541065:doCompare,[])
}
Add(DoData,4504615,1057,525)
{
link(onEventData,483413:doWork2,[])
link(Data,4331740:Var2,[(1063,478)(601,478)])
}
Add(GetDataEx,4331740,595,372)
{
link(Data,1482271:ParentHandle,[])
}
Add(If_else,7541065,1183,525)
{
Op2=Integer(0)
link(onTrue,13912033:doData,[(1234,531)(1234,454)])
link(onFalse,8227468:doWinInfo,[])
}
Add(DoData,13912033,1246,448)
{
Data=String(Не добраться до окна!)
link(onEventData,10503121:doWork3,[(1290,454)])
}
Add(HubEx,2357018,995,427)
{
Angle=2
link(onEvent,10561061:doWork1,[])
}
Add(WinInfo,8227468,1267,532)
{
Point(ParentHandle)
link(onWinInfo,1867882:doFind,[])
link(Handle,12727002:Var2,[])
}
Add(FindWindow,1867882,1337,532)
{
SkipParam=2
link(onFind,5719285:doCompare,[])
link(Caption,3441047:Var2,[])
}
Add(If_else,5719285,1393,532)
{
Op2=Integer(0)
link(onTrue,3140931:doWork2,[])
link(onFalse,3391407:doCompare,[(1441,545)(1441,559)])
}
Add(If_else,3391407,1456,553)
{
Type=5
link(onTrue,3140931:doWork3,[(1504,559)])
link(onFalse,8697329:doEvent2,[(1525,566)(1525,601)])
link(Op1,1867882:Handle,[(1462,525)(1382,525)(1382,577)(1343,577)])
link(Op2,7130705:Var2,[])
}
Add(FindWindow,12937575,1547,532)
{
SkipParam=1
link(onFind,11034211:doCompare,[])
link(ClassName,8788512:Var2,[])
}
Add(If_else,11034211,1610,532)
{
Type=5
Op2=Integer(0)
link(onTrue,222563:doData,[])
link(onFalse,8697329:doEvent1,[(1654,545)(1654,594)])
link(Op1,12937575:Handle,[(1616,524)(1591,524)(1591,576)(1553,576)])
link(Op2,14887739:Var2,[])
}
Add(HubEx,3140931,1500,532)
{
link(onEvent,12937575:doFind,[])
}
Add(DoData,222563,1673,532)
{
link(onEventData,483413:doWork3,[(1717,538)(1717,493)(1103,493)])
link(Data,8227468:ParentHandle,[(1679,500)(1326,500)(1326,587)(1287,587)])
}
Add(GetDataEx,12727002,1267,509)
{
Angle=3
link(Data,7794618:Value,[(1245,514)(1245,568)(1126,568)])
}
Add(GetDataEx,7130705,1463,509)
{
Angle=3
link(Data,12727002:Var3,[])
}
Add(HubEx,483413,1099,525)
{
link(onEvent,7794618:doValue,[])
}
Add(Hub,8697329,1666,588)
{
InCount=2
link(onEvent1,15819513:doReset,[])
link(onEvent2,2218896:doEnumChildWindows,[(1718,601)(1718,594)])
}
Add(WinEnum,2218896,1733,567)
{
VisibleOnly=1
Point(doEnumChildWindows)
Point(onEnumChildWindows)
Point(ParentHandle)
link(onEndEnum,11542020:doEvent1,[(1781,580)(1781,713)])
link(onEnumChildWindows,15972693:doEvent1,[])
link(ParentHandle,12862008:Var2,[])
}
Add(MST_RowAction,5785486,1901,665)
{
MSTControl="1"
}
Add(CounterEx,15819513,1845,581)
{
Min=-1
Max=1000
Default=-1
Point(doReset)
}
Add(Hub,15972693,1796,581)
{
OutCount=3
link(onEvent1,15819513:doNext,[])
link(onEvent2,15921592:doSeparateMT,[])
link(onEvent3,949109:doAdd,[(1828,601)(1828,671)])
}
Add(MT_Add,949109,1845,665)
{
InputMT=1
link(onAdd,5785486:doRowAction,[])
link(Data,10479317:Var2,[])
}
Add(MT_MultiData,15921592,1901,588)
{
link(onData2,5811660:doCompare,[])
}
Add(GetDataEx,14887739,1617,509)
{
Angle=3
link(Data,7130705:Var3,[])
}
Add(If_else,5811660,1964,595)
{
link(onTrue,5010402:doValue,[])
link(Op2,6835352:Var2,[])
}
Add(HubEx,10503121,1286,427)
{
Angle=2
link(onEvent,2357018:doWork2,[])
}
Add(Hub,8088677,2146,595)
{
OutCount=5
link(onEvent1,15900902:doWork3,[(2172,601)])
link(onEvent2,11326602:doData,[])
link(onEvent3,2597637:doStrCat,[])
link(onEvent4,7131265:doStrCat,[])
link(onEvent5,7239869:doStrCat,[])
}
Add(StrCat,7239869,2308,623)
{
Str1=" Caption: "
link(onStrCat,16511762:doWork2,[(2348,629)(2348,433)])
link(Str2,3441047:Var3,[(2321,520)])
}
Add(StrCat,7131265,2266,616)
{
Str1=" Handle: "
link(onStrCat,16511762:doWork3,[(2310,622)])
link(Str2,12862008:Var3,[(2279,514)])
}
Add(StrCat,2597637,2224,609)
{
Str1="ClassName: "
link(onStrCat,13466037:doWork3,[(2268,615)])
link(Str2,8788512:Var3,[(2237,508)])
}
Add(GetDataEx,8788512,1554,503)
{
Angle=3
link(Data,8227468:ClassName,[(1308,508)(1308,581)(1273,581)])
}
Add(GetDataEx,12862008,1740,509)
{
Angle=3
link(Data,14887739:Var3,[])
}
Add(GetDataEx,3441047,1351,515)
{
Angle=3
link(Data,8227468:Caption,[(1315,520)(1315,576)(1280,576)])
}
Add(HubEx,15900902,2168,427)
{
Angle=2
link(onEvent,10503121:doWork2,[])
}
Add(HubEx,13466037,2264,427)
{
Angle=2
link(onEvent,8935700:doWork2,[])
}
Add(HubEx,16511762,2306,427)
{
Angle=2
link(onEvent,13466037:doWork2,[])
}
Add(HubEx,8935700,2238,427)
{
Angle=2
link(onEvent,15900902:doWork2,[])
}
Add(GetDataEx,8671692,777,255)
{
Angle=3
link(Data,6511472:Var3,[])
}
Add(MST_SelectRow,3861468,2104,672)
{
MSTControl="1"
}
Add(Memory,5010402,2041,595)
{
Point(Data)
link(onData,7058463:doStrCat,[])
link(Data,10479317:Var3,[(2047,583)(1943,583)(1943,635)])
}
Add(GetDataEx,10479317,1845,630)
{
link(Data,15819513:Count,[])
}
Add(DoData,6384565,2041,672)
{
link(onEventData,3861468:doSelect,[])
link(Data,5010402:Value,[])
}
Add(ChildPanelEx,10678588,2020,728)
{
link(onClick,13422697:In,[])
}
BEGIN_SDK
Add(EditMultiEx,8079205,21,21)
{
WorkCount=#8:doEvent1|8:doEvent2|
EventCount=#7:onClick|
Width=643
Height=620
link(doEvent1,7252354:doEvent1,[(91,27)(91,55)])
link(doEvent2,7252354:doEvent2,[(81,34)(81,62)])
}
Add(Panel,13991157,35,105)
{
Left=2
Top=490
Width=400
Height=25
Layout="parent.001"
}
Add(Label,15142834,394,35)
{
Left=45
Top=4
Width=12
Height=17
Caption="x:"
}
Add(Button,6033364,74,241)
{
Left=2
Top=1
Width=40
Hint="послать окну клик левой клавишей миши"
Caption="ЛКМ"
link(onClick,4177877:doEvent1,[])
}
Add(Edit,9539172,253,49)
{
Left=55
Top=1
Width=35
Hint="отступ по горизонтали для команды ЛКМ"
Text="0"
}
Add(Label,4525223,440,32)
{
Left=96
Top=4
Width=12
Height=17
Caption="y:"
}
Add(Edit,8286008,304,49)
{
Left=105
Top=1
Width=35
Hint="отступ по вертикали для команды ЛКМ"
Text="0"
}
Add(Label,10749028,485,34)
{
Left=144
Top=4
Width=39
Height=17
Caption="handle:"
}
Add(Edit,15501280,191,49)
{
Left=180
Top=1
Width=59
Hint="хэндл "подопытного" окна"
Text="handle"
link(onChange,14290044:doEvent1,[(238,55)(238,160)(45,160)(45,400)])
}
Add(Hub,7252354,161,49)
{
InCount=2
OutCount=1
link(onEvent1,15501280:doText,[])
}
Add(SendMessage,5695693,258,304)
{
Message=1
Point(Message)
link(Handle,13183465:Var2,[])
link(LParam,5921510:Var2,[])
link(Message,8986266:Value,[(285,244)(341,244)])
}
Add(Memory,14141491,293,154)
{
Default=String(513)
}
Add(Hub,4177877,125,241)
{
link(onEvent1,13856255:doSendMessage,[])
link(onEvent2,5695693:doSendMessage,[(199,254)(199,310)])
}
Add(Memory,8986266,335,153)
{
Default=String(514)
}
Add(PointXY,4923117,272,103)
{
link(X,9539172:Text,[(278,94)(259,94)])
link(Y,8286008:Text,[(285,95)(310,95)])
}
Add(Button,2280899,327,410)
{
Left=284
Top=1
Width=57
Hint="сделать окно видимым\не видимым"
Caption="VISIBLE"
Point(doCaption)
link(onClick,11409001:doEvent,[])
}
Add(Button,8388962,328,522)
{
Left=341
Top=1
Width=54
Hint="сделать окно доступным\не доступным"
Caption="ENABLE"
Point(doCaption)
link(onClick,9753109:doEvent,[])
}
Add(WinTools,3822691,371,322)
{
Point(doEnable)
Point(isVisible)
Point(isEnabled)
link(Handle,1573466:Var2,[])
}
Add(IndexToChanel,11409001,378,410)
{
Point(Index)
link(onEvent1,16046770:doEvent1,[])
link(onEvent2,16074373:doEvent1,[(440,423)(440,465)])
link(Index,6611607:Var2,[])
}
Add(DoData,1914943,505,410)
{
Data=Integer(1)
link(onEventData,10860403:doWork2,[])
}
Add(Hub,16046770,454,410)
{
link(onEvent1,1914943:doData,[])
link(onEvent2,7866816:doWork1,[(493,423)])
}
Add(DoData,14512583,505,459)
{
Data=Integer(0)
link(onEventData,10860403:doWork3,[(549,465)])
}
Add(Hub,16074373,454,459)
{
link(onEvent1,14512583:doData,[])
link(onEvent2,7866816:doWork2,[])
}
Add(GetDataEx,13183465,258,287)
{
link(Data,6670343:Var3,[(264,194)])
}
Add(HubEx,10860403,545,410)
{
Angle=3
link(onEvent,3822691:doVisible,[(549,388)(353,388)(353,328)])
}
Add(IndexToChanel,9753109,385,522)
{
Point(Index)
link(onEvent1,11088695:doEvent1,[])
link(onEvent2,5881460:doEvent1,[(447,535)(447,577)])
link(Index,10639939:Var2,[])
}
Add(DoData,11973397,512,522)
{
Data=Integer(1)
link(onEventData,3131362:doWork2,[])
}
Add(Hub,11088695,461,522)
{
link(onEvent1,11973397:doData,[])
link(onEvent2,9443105:doWork2,[])
}
Add(DoData,15862776,512,571)
{
Data=Integer(0)
link(onEventData,3131362:doWork3,[(564,577)])
}
Add(Hub,5881460,461,571)
{
link(onEvent1,15862776:doData,[])
link(onEvent2,5287506:doWork2,[])
}
Add(HubEx,3131362,560,522)
{
Angle=3
link(onEvent,3822691:doEnable,[(564,376)(359,376)(359,356)])
}
Add(IndexToChanel,2438377,175,394)
{
Point(Index)
link(onEvent1,1269436:doData,[])
link(onEvent2,15627511:doData,[(223,407)(223,443)])
link(Index,6611607:Var1,[(181,369)])
}
Add(DoData,1269436,242,394)
{
Data=String(INVISIBLE)
link(onEventData,532180:doWork1,[(306,400)])
}
Add(DoData,15627511,242,437)
{
Data=String(VISIBLE)
link(onEventData,532180:doWork3,[(306,443)])
}
Add(IndexToChanel,1305323,182,503)
{
Point(Index)
link(onEvent1,8905695:doData,[])
link(onEvent2,5814867:doData,[(230,516)(230,558)])
link(Index,10639939:Var1,[(188,383)])
}
Add(DoData,8905695,247,503)
{
Data=String(DISABLE)
link(onEventData,10416295:doWork1,[(306,509)])
}
Add(DoData,5814867,247,552)
{
Data=String(ENABLE)
link(onEventData,10416295:doWork3,[(306,558)])
}
Add(HubEx,10416295,302,522)
{
link(onEvent,8388962:doCaption,[])
}
Add(HubEx,532180,302,410)
{
link(onEvent,2280899:doCaption,[])
}
Add(Hub,14290044,133,394)
{
InCount=2
link(onEvent1,2438377:doEvent,[(161,400)(161,400)])
link(onEvent2,1305323:doEvent,[(161,407)(161,509)])
}
Add(GetDataEx,6611607,378,364)
{
link(Data,3822691:isVisible,[])
}
Add(GetDataEx,10639939,385,378)
{
link(Data,3822691:isEnabled,[])
}
Add(HubEx,5287506,489,578)
{
Angle=1
link(onEvent,14290044:doEvent2,[(493,611)(121,611)(121,407)])
}
Add(HubEx,9443105,489,529)
{
Angle=1
link(onEvent,5287506:doWork1,[])
}
Add(HubEx,7866816,489,466)
{
Angle=1
link(onEvent,9443105:doWork1,[])
}
Add(Button,14325696,505,322)
{
Left=239
Top=1
Width=46
Hint="показать красную рамку по размерам выбранного окна"
Caption="РАМКА"
link(onClick,16649086:doData,[])
}
Add(DoData,16649086,560,322)
{
link(onEventData,8079205:onClick,[(628,328)(628,27)])
link(Data,1573466:Var3,[(566,292)])
}
Add(GetDataEx,1573466,371,287)
{
Angle=3
link(Data,13183465:Var3,[])
}
Add(SendMessage,13856255,216,241)
{
Message=1
WParam=1
Point(Message)
link(Handle,6670343:Var2,[(222,219)(222,219)])
link(LParam,5921510:Var1,[(236,201)])
link(Message,14141491:Value,[(243,213)(299,213)])
}
Add(GetDataEx,6670343,216,189)
{
Angle=3
link(Data,15501280:Text,[(197,194)])
}
Add(GetDataEx,5921510,272,196)
{
link(Data,4923117:Point,[])
}
END_SDK
Add(Hub,11542020,1824,707)
{
link(onEvent1,6384565:doData,[(2025,713)(2025,678)])
link(onEvent2,11217749:doWork1,[(1898,720)])
}
Add(DoData,11277991,1950,728)
{
link(onEventData,10678588:doEvent1,[])
link(Data,6835352:Var1,[(1956,565)])
}
Add(GetDataEx,6835352,1971,560)
{
link(Data,8671692:Var3,[(1977,260)])
}
Add(LineBreak,3321258,1950,770)
{
link(Out,10678588:doEvent2,[(2003,776)(2003,741)])
Primary=[6943409,-1635,-637]
}
Add(ChildForm,10169047,504,273)
{
}
BEGIN_SDK
Add(EditMulti,7968702,21,21)
{
VarCount=1
link(Var1,85298:Handle,[(27,186)(62,186)])
}
Add(MainForm,85298,56,119)
{
Left=35
Top=105
Width=155
Height=105
Color=16711935
Caption=""
BorderStyle=0
WindowsState=2
TransparentManager="1"
Point(Handle)
Point(doBringToFront)
}
Add(TransparentManager,16296710,189,119)
{
Name="1"
FormTranspColor=16711935
}
END_SDK
Add(GetDataEx,14866356,504,255)
{
link(Data,1735864:Value,[])
}
Add(Img_Rectangle,8649527,476,483)
{
Point2AsOffset=0
DrawSource=1
Size=2
Color=255
Point(Point1)
Point(Point2)
link(Bitmap,16606052:Var1,[(482,318)])
link(Point1,12997976:Point,[(496,471)(419,471)])
link(Point2,13682771:Point,[(503,471)(453,471)])
}
Add(PointXY,13682771,447,428)
{
link(X,1714651:Width,[(453,419)(433,419)])
link(Y,1714651:Height,[(460,413)(440,413)])
}
Add(GetDataEx,16606052,504,313)
{
link(Data,10169047:Var1,[])
}
Add(HubEx,8616526,455,301)
{
link(onEvent,8782812:doWork1,[(492,307)])
}
Add(Timer,887494,406,483)
{
Interval=10
Enable=1
AutoStop=2
link(onTimer,8649527:doDraw,[])
}
Add(StyleXP,8649876,63,70)
{
}
Add(Hub,14877233,259,140)
{
link(onEvent1,6943409:In,[(303,146)(303,139)])
link(onEvent2,7962996:doEvent1,[])
}
Add(HubEx,203949,371,315)
{
link(onEvent,1714651:doWinInfo,[])
}
Add(LineBreak,9199634,259,161)
{
link(Out,7962996:doEvent2,[(301,167)(301,160)])
Primary=[13422697,1817,567]
}
Add(HubEx,11217749,1894,728)
{
link(onEvent,11277991:doData,[])
}


скрин.jpg
карма: 3

0
Редактировалось 5 раз(а), последний 2017-11-11 10:18:02