Вверх ↑
Ответов: 204
Рейтинг: 2
#1: 2015-04-15 18:18:11 ЛС | профиль | цитата
Прикрутил к схеме определение координат мышки и сохранение в файл. Но вот столкнулся с тем что не знаю как воспроизвести записаную последовательность??!!
Время отчета таймера 24мс. но строчки пишутся только когда нажата кнопка или происходит движение мышкой. что-то я совсем запутался! ничего вообще не приходит на ум.


Как мне воспроизвести все те клики что я записал???


Add(MainForm,8145307,133,105)
{
Width=610
Height=565
}
Add(Keyboard,2077171,378,112)
{
}
Add(ArrayEnum,11951596,378,168)
{
link(onItem,579552:doEvent1,[])
link(Array,2077171:Keys,[])
}
Add(IntegerArray,11374726,462,98)
{
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,168)
{
link(onRead,6192302:doCompare,[])
link(Array,11374726:Array,[])
link(Index,15554606:Var2,[])
link(Value,13436457:Var2,[])
}
Add(Hub,579552,434,168)
{
link(onEvent1,7165902:doRead,[])
link(onEvent2,7165902:doWrite,[])
}
Add(GetDataEx,13436457,476,147)
{
Angle=3
link(Data,11951596:Item,[(422,152)(422,216)(384,216)])
}
Add(Thread,2066480,329,161)
{
Delay=24
link(onSyncExec,11951596:doEnum,[])
}
Add(Button,4879642,140,231)
{
Left=10
Top=35
Caption="rec"
Point(doVisible)
link(onClick,8300624:doEvent1,[])
}
Add(If_else,6192302,511,168)
{
Type=5
link(onTrue,16263899:doCompare,[])
link(Op1,13436457:Var3,[(517,152)])
}
Add(If_else,16263899,560,168)
{
Op2=Integer(1)
link(onTrue,9007692:doStrCat,[])
link(onFalse,11916442:doStrCat,[(599,181)(599,223)])
}
Add(StrCat,9007692,616,168)
{
Str2="=Down"
link(onStrCat,15507356:doWork2,[])
link(Str1,5895056:Var3,[(622,145)])
}
Add(StrCat,11916442,616,217)
{
Str2="=Up"
link(onStrCat,15507356:doWork3,[(662,223)])
link(Str1,5895056:Var2,[(622,208)(608,208)])
}
Add(GetDataEx,15554606,469,140)
{
Angle=3
link(Data,11951596:Index,[(417,145)(417,211)(391,211)])
}
Add(GetDataEx,5895056,602,140)
{
Angle=3
link(Data,15554606:Var3,[])
}
Add(HubEx,15507356,658,168)
{
link(onEvent,7564902:doWork2,[(696,174)(696,244)])
}
Add(ListBox,9958933,917,238)
{
Left=95
Top=20
Width=475
Height=490
AddType=1
}
Add(Timer,678672,309,385)
{
Interval=24
Enable=1
link(onTimer,658370:doStrCatDlm,[])
}
Add(MouseEvent,7491632,400,329)
{
}
Add(StrCatDelim,658370,386,385)
{
Str1="mouseX - "
Str2=" mouseY - "
Point(Delimiter)
link(onStrCatDlm,2048296:doStrCatDlm,[])
link(Delimiter,7491632:MouseX,[])
}
Add(StrCatDelim,2048296,435,385)
{
Str2=" == "
Point(Delimiter)
link(onStrCatDlm,10026908:doCompare,[])
link(Str1,658370:Result,[(441,375)(423,375)(423,429)(392,429)])
link(Delimiter,7491632:MouseY,[(455,373)(413,373)])
}
Add(If_else,10026908,505,385)
{
link(onFalse,12525211:doData,[(549,398)(549,391)])
link(Op2,5502883:Value,[(518,362)(558,362)(558,429)(623,429)])
}
Add(Memory,5502883,617,385)
{
link(onData,7564902:doWork3,[(732,391)])
}
Add(DoData,12525211,568,385)
{
link(onEventData,5502883:doValue,[])
link(Data,2048296:Result,[(574,373)(490,373)(490,429)(441,429)])
}
Add(HubEx,7564902,728,238)
{
link(onEvent,4589388:doValue,[])
}
Add(Hub,8300624,238,231)
{
OutCount=4
link(onEvent1,2066480:doStart,[(290,237)(290,167)])
link(onEvent2,678672:doTimer,[(280,244)(280,391)])
link(onEvent3,13039847:doWork1,[(264,251)(264,279)(44,279)(44,307)])
link(onEvent4,6163725:doTimer,[(256,258)(256,538)])
}
Add(Button,7218088,132,364)
{
Left=10
Top=35
Visible=1
Caption="stop"
Point(doVisible)
link(onClick,13326357:doEvent1,[])
}
Add(MultiElement,13039847,63,301)
{
link(onEvent1,4879642:doVisible,[(117,307)(117,237)])
link(onEvent2,7218088:doVisible,[(117,314)(117,370)])
}
BEGIN_SDK
Add(EditMulti,11788551,21,21)
{
EventCount=2
WorkCount=2
Width=559
Height=522
link(doWork1,12389071:doEvent1,[(133,27)(133,174)])
link(doWork2,4194839:doEvent1,[(119,34)(119,293)])
}
Add(DoData,1662258,245,168)
{
Data=Integer(0)
link(onEventData,2504578:doWork2,[])
}
Add(DoData,8116170,301,217)
{
Data=Integer(1)
link(onEventData,8389973:doWork2,[])
}
Add(DoData,3098572,217,287)
{
Data=Integer(1)
link(onEventData,2504578:doWork3,[(429,293)])
}
Add(DoData,4731833,273,336)
{
Data=Integer(0)
link(onEventData,8389973:doWork3,[(457,342)])
}
Add(Hub,12389071,203,168)
{
link(onEvent1,1662258:doData,[])
link(onEvent2,8116170:doData,[(229,181)(229,223)])
}
Add(HubEx,2504578,425,168)
{
Angle=3
link(onEvent,11788551:onEvent1,[(429,27)])
}
Add(HubEx,8389973,453,217)
{
Angle=3
link(onEvent,11788551:onEvent2,[(457,34)])
}
Add(Hub,4194839,161,287)
{
link(onEvent1,3098572:doData,[])
link(onEvent2,4731833:doData,[(198,300)(198,342)])
}
END_SDK
Add(Hub,13326357,182,364)
{
OutCount=5
link(onEvent1,13039847:doWork2,[(226,370)(226,342)(44,342)(44,314)])
link(onEvent2,2066480:doStop,[(293,377)(293,174)])
link(onEvent3,678672:doStop,[(226,384)(226,398)])
link(onEvent4,6163725:doStop,[(218,391)(218,545)])
link(onEvent5,9666161:doTimer,[(209,398)(209,587)])
}
Add(Button,13620493,779,343)
{
Left=15
Top=480
Caption="save"
link(onClick,4153593:doExecute,[])
}
Add(SDialog,4153593,836,343)
{
Filter="*.txt"
FileName=".txt"
link(onExecute,9958933:doSave,[(877,349)(877,279)])
}
Add(Timer,6163725,371,532)
{
Interval=24
Enable=1
link(onTimer,14322882:doOperation,[])
}
Add(Math,14322882,434,532)
{
Op2=1
link(onResult,5055934:doValue,[])
link(Op1,9585113:Var1,[(440,520)(475,520)(475,576)])
}
Add(Memory,5055934,511,532)
{
Default=Integer(0)
link(onData,6877362:doStrCat,[])
}
Add(StrCatDelim,10161639,637,532)
{
Str1="("
Str2=")"
Point(Delimiter)
link(Delimiter,6877362:Result,[(657,520)(615,520)(615,576)(573,576)])
}
Add(GetDataEx,9585113,511,571)
{
link(Data,5055934:Value,[])
}
Add(Timer,9666161,434,581)
{
Interval=25
Enable=1
AutoStop=1
link(onTimer,5055934:doClear,[(488,587)(488,545)])
}
Add(StrCat,11411558,840,238)
{
link(onStrCat,9958933:doAdd,[])
link(Str1,4589388:Value,[(846,226)(808,226)(808,282)(769,282)])
link(Str2,10161639:Result,[(853,226)(893,226)(893,569)(643,569)])
}
Add(Memory,4589388,763,238)
{
link(onData,11411558:doStrCat,[])
}
Add(StrCat,6877362,567,532)
{
Str2="ms"
link(onStrCat,10161639:doStrCatDlm,[])
link(Str1,9585113:Var3,[(573,520)(556,520)(556,576)])
}

карма: 1

0