
acmecd
Members-
Posts
13 -
Joined
-
Last visited
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by acmecd
-
Thank you very much, i finally began to understand XML structure, problem solved.
-
XML files that need to be processed is the phone book. As can be seen from the examples, each file has its own structure, but the contact data is between nodes <item>...atributes.... </item> In this case, select the relevant contact and then read its contents. Each data file is different, depending on phone model. Examples: <item><field name="Index" class="INFO" value="35"/><field name="Name" class="CONTACT" value="Max.Valmer."/><field name="Tel" class="PHONE" value="282-591-159-654"/><field name="Storage" class="INFO" value="SIM"/></item <item><field name="Name" class="CONTACT" value="Dins"/><field name="Index" class="INFO" value="37"/><field name="Mobile" class="PHONE" value="282-891-159-615"/></item> <item><field name="Related Application" class="INFO" value="com.viber.voip.account"/><field name="Name" class="CONTACT" value="aurasD"/><field name="Contact" class="CONTACT" value="532"/><field name="Storage" class="INFO" value="Device"/><field name="Index" class="INFO" value="1052"/><field name="Account Name" class="INFO" value="382-894-159-657"/></item> I believe the only solution without regard to the file structure is read node and then each process. Thank you in advance for assistance
-
Thanks for the advice. The solution is to work on. The only improvement that would be useful, if can get data from a particular node. For example, can choose from <item>...atributes.... </item> 5, 20, 30 etc nodes, because in this case, all attributes are read from nodes / / file. In any event, thank you for your feedback and help.
-
Hello. I have the following XML code, but unfortunately, it can't read the in the array. Read each node in array should be worn separately and then read atributes value. I tried multiple code samples of the forum, but nothing is working, maybe someone has a sample or idea. <views><acc version="6.12.0.0"/><view name="Contacts/Contacts"><item><field name="Related Application" class="INFO" value="vnd.sec.contact.phone"/><field name="Name" class="CONTACT" value="Buc"/><field name="Mobile" class="PHONE" value="220-258-759-22"/><field name="Index" class="INFO" value="1"/><field name="Account Name" class="INFO" value="vnd.sec.contact.phone"/></item><item><field name="Related Application" class="INFO" value="vnd.sec.contact.phone"/><field name="Name" class="CONTACT" value="RQASAS2"/><field name="Mobile" class="PHONE" value="296-040-567-833"/><field name="Index" class="INFO" value="2"/><field name="Account Name" class="INFO" value="vnd.sec.contact.phone"/></item>
-
Thank you very much, because so much time passed before I understood where is the error !!!
-
Hi, I would like to know whether it is Autoit error or not. If one of the values is 0, then the IF function is always positive, and the answer is incorrect. AutoIt Version: 3.3.12.0 Local $BiteMain=MainParameters(1,0) Func MainParameters($ParamArrayCol="A", $ParamArrayRow="B") If $ParamArrayCol="A" Or $ParamArrayRow="B" Then MsgBox(0,"Info","Err.") Return False Else Return "Ok" EndIf EndFunc
-
Have files with Hash sets, from user from different computers and array with hashes from know files. Need find are users have know files set in their computers.
-
Fast text string search Hello! There are little problem. I have files with bulk hashes like that: |R7F3D6BPXT6JMW5E3EMUUURTDYR7PLAKH2D5DXY|FLPQQB7UELD6D7SV5CSTMGQ2RMH35VINTTVOX5I|EY3TRJVPVDICTMDEW7HRRCQXWIUCXF325YASPUY| etc. And Array with 1-[uX2ANE6SKDVSK4W6MIHNXLIBG5YQHHHQ65HZGHA], 2-[uX2ANE6SKDVSK4W6MIHNXLIBG5YQHHHQ65HZGHA] etc. 2000-[] Main think are determine which array element 1 or 2 or….. corresponding to bulk hashes file. With If StringInStr($AllFilechars,$AllTTHList[$A][0])>0 Then work good only small file, with file larger than 10 megabytes takes a lot of time. May be there are some other way search faster hashes or any algorithms.
-
Code Chage: $realKey &= StringFormat("/%DCN%03d%/", $key[$i])
-
If any error happens I want script to exit quietly without popup error message and script close automatically. Script is reading some data from files, sort database, performing some actions with IE, read Windows handle etc. After some time if script is not running then other script restarting it. There to much write to handle all the errors, need simple solution when scrip exits on any error.
-
To get all controls in window I use script from forum, but there is problem if window have control with some names script get handle from first name like that: [25] Button1 0x000D0446 [28] Button1 0x000D0446 [41] Button1 0x000D0446 [17] Button2 0x001902B0 [18] Button3 0x003B0210 [9] ComboBox1 0x004D02F4 [19] ComboBox1 0x004D02F4 [21] ComboBox1 0x004D02F4 [30] ComboBox1 0x004D02F4 [35] ComboBox1 0x004D02F4 [6] Edit1 0x0017031A [8] Edit1 0x0017031A [20] Edit1 0x0017031A [27] Edit1 0x0017031A [29] Edit1 0x0017031A [36] Edit1 0x0017031A Any ideas ? #include "Array.au3" Opt("WinTitleMatchMode", 4) $aArray = _WinGetControls('[CLASS:.......]') _ArrayDisplay($aArray) Func _WinGetControls($Title, $Text="") Local $WndControls, $aControls, $sLast="", $n=1 $WndControls = WinGetClassList($Title, $Text) $aControls = StringSplit($WndControls, @CRLF) Dim $aResult[$aControls[0]+1][2] For $i = 1 To $aControls[0] If $aControls[$i] <> "" Then If $sLast = $aControls[$i] Then $n+=1 Else $n=1 EndIf $aControls[$i] &= $n $sLast = StringTrimRight($aControls[$i],1) EndIf If $i < $aControls[0] Then $aResult[$i][0] = $aControls[$i] Else ; last item in array $aResult[$i][0] = WinGetTitle($Title) ; return WinTitle EndIf $aResult[$i][1] = ControlGetHandle($Title, $Text, $aControls[$i]) Next $aResult[0][0] = "ClassnameNN" $aResult[0][1] = "Handle" Return $aResult EndFunc
-
There is very nice well know script to get Socket To IP, that’s work good. But, I need get with connected IP also remote port, (IP:Port) there are any ideas how to upgrade script. ; Function to return IP Address from a connected socket. ;---------------------------------------------------------------------- Func SocketToIP($SHOCKET) Local $sockaddr, $aRet $sockaddr = DllStructCreate("short;ushort;uint;char[8]") $aRet = DllCall("Ws2_32.dll", "int", "getpeername", "int", $SHOCKET, _ "ptr", DllStructGetPtr($sockaddr), "int*", DllStructGetSize($sockaddr)) If Not @error And $aRet[0] = 0 Then $aRet = DllCall("Ws2_32.dll", "str", "inet_ntoa", "int", DllStructGetData($sockaddr, 3)) If Not @error Then $aRet = $aRet[0] Else $aRet = 0 EndIf $sockaddr = 0 Return $aRet EndFunc ;==>SocketToIP
-
Hello! I've start created my script for searching files in Direct Connect Hubs. One of the commands to use with DC HUB connection is calculate $Key message. (http://nmdc.sourceforge.net/NMDC.html). $Key message is sent in response to a $Lock command, sent by the remote host. It is used in Client-to-Client and Client-to-Hub handshake, but also in the Hublist registration process. There are lot of code resources in internet, http://wiki.gusari.org/index.php?title=LockToKey() but there are no code in AutoIt. Is there any script for calculating $Key values in Autoit, because I am not so advanced to rewrite Autoit scrip from other code languages.