А как по этой схеме прочитать нажатие и отпускание кнопки?
Я пробовал вызывать событие по условию, что если текущий элемент массива = 1 то это нажатие. Но что-то не выходит.
Add(Keyboard,2077171,294,154)
{
}
Add(ArrayEnum,11951596,294,210)
{
link(onItem,383006:doCompare,[])
link(Array,2077171:Keys,[])
}
Add(IntegerArray,11374726,462,140)
{
IntArray=['0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0,'0'=0]
}
Add(ArrayRW,7165902,462,210)
{
link(onRead,6503619:doOperation,[])
link(Array,11374726:Array,[])
link(Index,11066921:Var2,[])
link(Value,13436457:Var2,[])
}
Add(Hub,579552,434,210)
{
link(onEvent1,7165902:doRead,[])
link(onEvent2,7165902:doWrite,[])
}
Add(Math,6503619,504,210)
{
OpType=2
Op2=2
ResultType=0
link(onResult,13041990:doOperation,[])
}
Add(Math,13041990,546,210)
{
link(onResult,13522491:doCase,[])
link(Op2,5098092:Var2,[])
}
Add(GetDataEx,13436457,476,189)
{
Angle=3
link(Data,11951596:Item,[(338,194)(338,258)(300,258)])
}
Add(Case,13522491,588,210)
{
Value=Integer(2)
link(onTrue,604346:doCompare,[])
}
Add(GetDataEx,11066921,469,182)
{
Angle=3
link(Data,16501493:Var3,[])
}
Add(Thread,2066480,203,203)
{
Delay=24
link(onSyncExec,11951596:doEnum,[])
}
Add(If_else,383006,392,210)
{
Type=2
Op2=Integer(31)
link(onTrue,579552:doEvent1,[])
link(Op1,16501493:Var2,[])
}
Add(GetDataEx,16501493,392,182)
{
Angle=3
link(Data,11951596:Index,[(333,187)(333,253)(307,253)])
}
Add(FormatStr,2678100,735,217)
{
Mask="%1;%2"
link(onFString,7235543:doAdd,[])
link(Str1,11066921:Var3,[(741,187)])
link(Str2,11068749:Value,[])
}
Add(StringTable,7235543,833,217)
{
Left=26
Top=71
Width=355
Height=255
FileName="shpik.txt"
Columns=#6:а?аОаД|15:а?б?аЕаМб?=100||
Grid=0
}
Add(Button,4879642,91,203)
{
Left=165
Top=35
link(onClick,2066480:doStart,[])
}
Add(If_else,604346,637,217)
{
Op2=Integer(1)
link(onTrue,11068749:doValue,[(705,223)(705,174)])
link(Op1,5098092:Var3,[(643,194)])
}
Add(GetDataEx,5098092,553,189)
{
Angle=3
link(Data,13436457:Var3,[])
}
Add(Memory,11068749,742,168)
{
link(onData,2678100:doString,[(786,174)(786,191)(723,191)(723,223)])
}