Вверх ↑
Ответов: 207
Рейтинг: 14
#1: 2021-03-13 20:20:16 ЛС | профиль | цитата
hin4, Один из множества вариантов.

Add(MainForm,2953706,84,133)
{
Width=489
Height=512
}
Add(RE_Search,6994251,161,217)
{
Expression="Local LAN ip address : [\d\.]+|ExternalIPAddress = [\d\.]+|InternalIPort = [\d\.:]+|external [\d\.:]+"
ModifierS=1
link(onMatch,15266639:doEvent1,[])
link(SourceStr,13469721:Text,[])
}
Add(Memo,6985842,308,217)
{
Left=5
Top=210
Width=460
Height=185
}
Add(Hub,15266639,203,217)
{
link(onEvent1,2430627:doMultiReplace,[])
link(onEvent2,6994251:doExecNext,[(228,230)(228,258)(151,258)(151,230)])
}
Add(MultiReplace,2430627,252,217)
{
ReplaceList="Local LAN ip address : #LocalIP = ;\r\nExternalIPAddress = #ExternalIP = ;\r\nInternalIPort = #LocalipIPPort = ;\r\nexternal #ExternalIPPort = ;"
Delimiter="#"
link(onResult,6985842:doAdd,[])
}
Add(Memo,13469721,161,147)
{
Left=5
Width=460
Height=205
Strings=#41:upnpc : library test client, version 1.9.|29:(c) 2005-2014 Thomas Bernard.|26:Go to http:/// or http:///|21:for more information.|43:List of UPNP devices found on the network :|43:desc: http://192.168.1.1:50045/rootDesc.xml|55:st: urn:schemas-upnp-org:device:InternetGatewayDevice:1|0:|53:Found valid IGD : http://192.168.1.1:50045/ctl/IPConn|34:Local LAN ip address : 192.168.1.2|35:ExternalIPAddress = 192.215.148.173|33:InternalIPort = 192.168.1.2:63944|91:external 192.215.148.173:63944 TCP is redirected to internal 192.168.1.2:63944 (duration=0)|
}
Add(Button,9425802,70,217)
{
Left=165
Top=415
Width=150
Height=40
link(onClick,6994251:doExec,[])
}
карма: 2

1
Голосовали:hin4