Виндовс код
Add(MainForm,2953706,21,105)
{
Width=974
Height=664
link(onCreate,9119342:doOpen,[(135,125)(135,111)])
}
Add(FormatStr,8940725,210,168)
{
Mask="POST /info.php HTTP/1.1
Host: 192.168.1.128
Connection: open
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Content-Length: %2
%1
"
link(onFString,9119342:doSend,[(254,174)(254,150)(205,150)(205,125)])
link(Str1,15011105:Var3,[(216,138)])
link(Str2,14516944:Result,[(223,156)(191,156)(191,212)(160,212)])
}
Add(Button,11888118,91,168)
{
Left=145
Top=165
link(onClick,14516944:doLength,[])
}
Add(TCP_Client,9119342,217,105)
{
Port=80
IP="192.168.1.128"
link(onRead,14022413:doFromText,[(296,111)(296,139)])
}
Add(Memory,12788685,182,42)
{
Default=String(test = afgasflsa;kopdigjlskad)
}
Add(Length,14516944,154,168)
{
link(onLength,8940725:doString,[])
link(Str,15011105:Var2,[(160,155)(188,155)])
}
Add(GetDataEx,15011105,182,133)
{
link(Data,12788685:Value,[])
}
Add(WebBrowser,14022413,343,105)
{
Left=265
Top=10
Width=635
Height=585
Point(doFromText)
}
{
Width=974
Height=664
link(onCreate,9119342:doOpen,[(135,125)(135,111)])
}
Add(FormatStr,8940725,210,168)
{
Mask="POST /info.php HTTP/1.1
Host: 192.168.1.128
Connection: open
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Content-Length: %2
%1
"
link(onFString,9119342:doSend,[(254,174)(254,150)(205,150)(205,125)])
link(Str1,15011105:Var3,[(216,138)])
link(Str2,14516944:Result,[(223,156)(191,156)(191,212)(160,212)])
}
Add(Button,11888118,91,168)
{
Left=145
Top=165
link(onClick,14516944:doLength,[])
}
Add(TCP_Client,9119342,217,105)
{
Port=80
IP="192.168.1.128"
link(onRead,14022413:doFromText,[(296,111)(296,139)])
}
Add(Memory,12788685,182,42)
{
Default=String(test = afgasflsa;kopdigjlskad)
}
Add(Length,14516944,154,168)
{
link(onLength,8940725:doString,[])
link(Str,15011105:Var2,[(160,155)(188,155)])
}
Add(GetDataEx,15011105,182,133)
{
link(Data,12788685:Value,[])
}
Add(WebBrowser,14022413,343,105)
{
Left=265
Top=10
Width=635
Height=585
Point(doFromText)
}
Вот делаю в Андроид,
Андроид код
Add(MainActivity,2953706,21,105)
{
Width=749
}
Add(TCPClient,11141078,357,77)
{
IP="192.168.1.128"
Port=80
Point(isConnected)
link(onConnectResult,10118159:doSetText,[(401,83)(401,101)(198,101)(198,118)])
link(onError,3434933:doWork2,[(396,90)(396,146)(375,146)(375,216)])
}
Add(FormatStr,2423805,308,252)
{
Mask="POST /info.php HTTP/1.1
Host: 192.168.1.128
Connection: close
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Content-Length: %2
%1
"
Point(Result)
link(onResult,11038210:doWrite,[])
link(Str2,13311225:Result,[(321,240)(298,240)(298,290)(265,290)])
}
Add(ListReadWrite,3916791,189,245)
{
Point(Index)
link(onRead,16390212:doEvent1,[])
link(List,1585450:List,[])
}
Add(List,1585450,189,168)
{
Items=#48:m1l =set con 27 output 0 & pwm =set pwm 2 0 1500|51:m1l =set con 27 output 1 & pwm =set pwm 2 1000 1500|
}
Add(ListView,6922108,434,252)
{
Left=275
Top=30
Width=220
Height=277
LayoutManager="1"
link(String,11038210ata,[(440,240)(402,240)(402,296)(363,296)])
}
Add(SimpleStreamRW,11038210,357,252)
{
Point(WritingData)
link(onRead,6922108:doAdd,[])
link(onError,3434933:doWork3,[(401,265)(401,242)(384,242)])
link(InputStream,11141078:InputStream,[])
link(OutputStream,11141078:OutputStream,[])
link(WritingData,2423805:Result,[(377,240)(348,240)(348,295)(314,295)])
}
Add(TextView,10118159,210,112)
{
Left=270
Top=10
LayoutManager="1"
}
Add(Button,13062887,210,56)
{
Left=495
Top=10
LayoutManager="1"
Point(onClick)
link(onClick,15197338:doExec,[])
}
Add(TextView,5500929,273,112)
{
Left=395
Top=10
LayoutManager="1"
}
Add(UIThread,10323848,399,182)
{
link(onEvent,5500929:doSetText,[(443,188)(443,153)(261,153)(261,118)])
}
Add(HubEx,3434933,380,210)
{
Angle=3
link(onEvent,10323848:doCallEvent,[(384,188)])
}
Add(AsyncTask,15197338,273,56)
{
link(onBackground,11141078:doConnect,[(331,62)(331,83)])
}
Add(StrLen,13311225,259,245)
{
}
Add(Hub,16390212,231,245)
{
OutCount=3
link(onEvent1,13311225:doLength,[])
link(onEvent2,2423805:doFormat,[])
}
Add(ChanelToIndex,10460643,140,245)
{
link(onIndex,3916791:doRead,[])
}
Add(LayoutAbsolute,11440114,21,56)
{
Name="1"
}
Add(Button,2387446,98,231)
{
Left=65
Top=60
LayoutManager="1"
Point(onClick)
link(onClick,10460643:doWork1,[(135,237)(135,251)])
}
Add(Button,13448554,98,259)
{
Left=65
Top=110
LayoutManager="1"
Point(onClick)
link(onClick,10460643:doWork2,[(135,265)(135,258)])
}
{
Width=749
}
Add(TCPClient,11141078,357,77)
{
IP="192.168.1.128"
Port=80
Point(isConnected)
link(onConnectResult,10118159:doSetText,[(401,83)(401,101)(198,101)(198,118)])
link(onError,3434933:doWork2,[(396,90)(396,146)(375,146)(375,216)])
}
Add(FormatStr,2423805,308,252)
{
Mask="POST /info.php HTTP/1.1
Host: 192.168.1.128
Connection: close
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Content-Length: %2
%1
"
Point(Result)
link(onResult,11038210:doWrite,[])
link(Str2,13311225:Result,[(321,240)(298,240)(298,290)(265,290)])
}
Add(ListReadWrite,3916791,189,245)
{
Point(Index)
link(onRead,16390212:doEvent1,[])
link(List,1585450:List,[])
}
Add(List,1585450,189,168)
{
Items=#48:m1l =set con 27 output 0 & pwm =set pwm 2 0 1500|51:m1l =set con 27 output 1 & pwm =set pwm 2 1000 1500|
}
Add(ListView,6922108,434,252)
{
Left=275
Top=30
Width=220
Height=277
LayoutManager="1"
link(String,11038210ata,[(440,240)(402,240)(402,296)(363,296)])
}
Add(SimpleStreamRW,11038210,357,252)
{
Point(WritingData)
link(onRead,6922108:doAdd,[])
link(onError,3434933:doWork3,[(401,265)(401,242)(384,242)])
link(InputStream,11141078:InputStream,[])
link(OutputStream,11141078:OutputStream,[])
link(WritingData,2423805:Result,[(377,240)(348,240)(348,295)(314,295)])
}
Add(TextView,10118159,210,112)
{
Left=270
Top=10
LayoutManager="1"
}
Add(Button,13062887,210,56)
{
Left=495
Top=10
LayoutManager="1"
Point(onClick)
link(onClick,15197338:doExec,[])
}
Add(TextView,5500929,273,112)
{
Left=395
Top=10
LayoutManager="1"
}
Add(UIThread,10323848,399,182)
{
link(onEvent,5500929:doSetText,[(443,188)(443,153)(261,153)(261,118)])
}
Add(HubEx,3434933,380,210)
{
Angle=3
link(onEvent,10323848:doCallEvent,[(384,188)])
}
Add(AsyncTask,15197338,273,56)
{
link(onBackground,11141078:doConnect,[(331,62)(331,83)])
}
Add(StrLen,13311225,259,245)
{
}
Add(Hub,16390212,231,245)
{
OutCount=3
link(onEvent1,13311225:doLength,[])
link(onEvent2,2423805:doFormat,[])
}
Add(ChanelToIndex,10460643,140,245)
{
link(onIndex,3916791:doRead,[])
}
Add(LayoutAbsolute,11440114,21,56)
{
Name="1"
}
Add(Button,2387446,98,231)
{
Left=65
Top=60
LayoutManager="1"
Point(onClick)
link(onClick,10460643:doWork1,[(135,237)(135,251)])
}
Add(Button,13448554,98,259)
{
Left=65
Top=110
LayoutManager="1"
Point(onClick)
link(onClick,10460643:doWork2,[(135,265)(135,258)])
}