[flood](исчерпал лимит голосов)[/flood]
Вот так у меня заработало:
Add(MainForm,4894883,217,77)
{
Width=356
Height=314
Point(onMouseDown)
Point(onMouseUp)
Point(MouseX)
Point(MouseY)
link(onMouseDown,1009591:doCompare,[])
link(onMouseUp,1872163:doCompare,[(275,111)(275,146)])
}
Add(Edit,14495577,560,273)
{
Left=100
Top=70
Width=125
Height=80
Enabled=1
Text=""
Point(doColor)
Point(Left)
Point(Top)
Point(Width)
Point(Height)
Point(onMouseUp)
link(onMouseUp,7687967:doWork3,[(610,293)(610,153)])
}
Add(Memory,7666969,217,287)
{
Point(Data)
link(onData,12487893:doValue,[])
link(Data,11016860:Var2,[])
}
Add(Memory,12487893,259,287)
{
Point(Data)
link(Data,4771447:Var2,[])
}
Add(Memory,16138599,364,259)
{
Point(Data)
link(onData,10343859:doValue,[])
link(Data,11016860:Var3,[(370,250)])
}
Add(Memory,10343859,406,259)
{
Point(Data)
link(onData,15482271:doCalc,[(504,265)(504,356)])
link(Data,4771447:Var3,[(412,233)])
}
Add(GetDataEx,4771447,259,228)
{
Angle=3
link(Data,4894883:MouseY,[(230,233)])
}
Add(GetDataEx,11016860,217,245)
{
link(Data,4894883:MouseX,[])
}
Add(DoData,3807483,700,392)
{
Data=String(Нет!)
link(onEventData,10905101:doWork3,[(769,398)])
}
Add(If_else,1009591,301,98)
{
Type=5
Op2=Integer(0)
link(onFalse,7666969:doValue,[(345,111)(345,202)(205,202)(205,293)])
}
Add(If_else,1872163,301,140)
{
Type=5
Op2=Integer(0)
link(onFalse,7687967:doWork2,[(333,153)])
}
Add(IndexToChanel,7070337,637,350)
{
link(onEvent1,13151540:doData,[])
link(onEvent2,3807483:doData,[(677,363)(677,398)])
}
Add(DoData,13151540,700,350)
{
Data=String(Попал!)
link(onEventData,10905101:doWork2,[])
}
Add(MathParse,15482271,539,350)
{
DataCount=8
MathStr="(max(%1,%3)<%5)+(min(%1,%3)>(%5+%7)) + (max(%2,%4)<%6)+(min(%2,%4)>(%6+%8))"
link(onResult,7070337:doEvent,[])
link(X1,7666969:Value,[(545,343)(223,343)])
link(X2,12487893:Value,[(552,338)(265,338)])
link(X3,16138599:Value,[(559,327)(370,327)])
link(X4,10343859:Value,[(566,317)(412,317)])
link(X5,14495577:Left,[])
link(X6,14495577:Top,[])
link(X7,14495577:Width,[])
link(X8,14495577:Height,[])
}
Add(HubEx,10905101,765,350)
{
Angle=3
link(onEvent,7340283:doText,[(769,328)])
}
Add(Label,7340283,826,322)
{
Left=140
Top=100
}
Add(HubEx,7687967,401,147)
{
Angle=1
link(onEvent,16138599:doValue,[(405,265)])
}
Леонид, я нашел мертвую зону, которую формула не видит. Она находится в направлениях, которые идут от углов обьекта.
------------ Дoбавленo в 15.04:
ae2.gif
------------ Дoбавленo в 15.44:
Разобрался в чем причина, просто формула иногда 2 возвращает - и это тоже значит "Нет"!
Add(MainForm,4894883,217,133)
{
Width=356
Height=314
Point(onMouseDown)
Point(onMouseUp)
Point(MouseX)
Point(MouseY)
link(onMouseDown,7666969:doValue,[(276,160)(276,210)(205,210)(205,293)])
link(onMouseUp,7687967:doWork2,[])
}
Add(Edit,14495577,560,273)
{
Left=100
Top=70
Width=125
Height=80
Enabled=1
Text=""
Point(doColor)
Point(Left)
Point(Top)
Point(Width)
Point(Height)
Point(onMouseUp)
link(onMouseUp,7687967:doWork3,[(610,293)(610,167)])
}
Add(Memory,7666969,217,287)
{
Point(Data)
link(onData,12487893:doValue,[])
link(Data,11016860:Var2,[])
}
Add(Memory,12487893,259,287)
{
Point(Data)
link(Data,4771447:Var2,[])
}
Add(Memory,16138599,364,259)
{
Point(Data)
link(onData,10343859:doValue,[])
link(Data,11016860:Var3,[(370,250)])
}
Add(Memory,10343859,406,259)
{
Point(Data)
link(onData,15482271:doCalc,[(504,265)(504,356)])
link(Data,4771447:Var3,[(412,233)])
}
Add(GetDataEx,4771447,259,228)
{
Angle=3
link(Data,4894883:MouseY,[(230,233)])
}
Add(GetDataEx,11016860,217,245)
{
link(Data,4894883:MouseX,[])
}
Add(DoData,3807483,679,392)
{
Data=String(Нет!)
link(onEventData,10905101:doWork3,[(748,398)])
}
Add(IndexToChanel,7070337,616,350)
{
Count=3
link(onEvent1,13151540:doData,[])
link(onEvent2,1801417:doWork1,[(668,363)])
link(onEvent3,1801417:doWork2,[])
}
Add(DoData,13151540,679,350)
{
Data=String(Попал!)
link(onEventData,10905101:doWork2,[])
}
Add(MathParse,15482271,539,350)
{
DataCount=8
MathStr="(max(%1,%3)<%5)+(min(%1,%3)>(%5+%7)) + (max(%2,%4)<%6)+(min(%2,%4)>(%6+%8))"
ResultType=0
link(onResult,7070337:doEvent,[])
link(X1,7666969:Value,[(545,343)(223,343)])
link(X2,12487893:Value,[(552,338)(265,338)])
link(X3,16138599:Value,[(559,327)(370,327)])
link(X4,10343859:Value,[(566,317)(412,317)])
link(X5,14495577:Left,[])
link(X6,14495577:Top,[])
link(X7,14495577:Width,[])
link(X8,14495577:Height,[])
}
Add(HubEx,10905101,744,350)
{
Angle=3
link(onEvent,7340283:doText,[(748,328)])
}
Add(Label,7340283,798,322)
{
Left=140
Top=100
}
Add(HubEx,7687967,450,161)
{
Angle=1
link(onEvent,16138599:doValue,[(454,210)(352,210)(352,265)])
}
Add(HubEx,1801417,664,364)
{
Angle=1
link(onEvent,3807483:doData,[(668,398)])
}