Jump to content

AlbatorV

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by AlbatorV

  1. Excellent, many thanks...
  2. Is it possible to autosize column of a Listview ?
  3. It's perfect, thanks. Another thing... I have this xml <?xml version="1.0" ?> <meta_data config_type="private" lastfeed_high="0" /> I want to get "config_type" value, so... $configtype=_xmlgetattrib("/meta_data", "config_type") msgbox(0,"","Config? " & $configtype) But always return "-1"
  4. Here my script For $i=1 to _XMLGetNodeCount("/foldercolors/path") $type = _XMLGetAttrib("foldercolors/path[" & $i & "]", "type") if $type[1]=0 or $type[1]=2 then $pathstring = _XMLGetValue("/foldercolors/path[" & $i & "]/dir/pathstring") If NOT FileExists($pathstring[1]) Then MsgBox(0,"","Type=" & $type[1]) EndIf Next
  5. Hi, I need to create utility to read info on xml file like this: <?xml version="1.0" encoding="UTF-8"?> <foldercolors> <path color="{A3B60A15-3008-40C5-B96B-615CF0005B25}" type="0"> <dir> <pathstring>c:\windows</pathstring> </dir> </path> <path color="{2F499E2B-8B6E-4B80-8E3B-C73E032E801F}" type="2"> <dir> <pathstring>c:\windows\test.temp</pathstring> </dir> </path> <path color="{C7A7BD30-0E8C-4A4B-B43A-2BA330167A21}" type="6"> <dir> <pathstring>*(.zip|.rar|.7z|.tar|.tbz2|.tgz|.zipx)</pathstring> </dir> </path> </foldercolors> 1) if "type" value is 0 or 2 (but other value), test if pathstring exists 2) create dialog to display no existing pathstring 3) add button in dialog to clear non existing pathstring in xml file For now my script not read type value and i can not find how to do this. Can i have some help ? foldercolors.xml script.au3
  6. Is there a way to change default position of FileOpenDialog window ?
  7. Please i need help again... i don't understand why all non existing path are not delete. i need to execute my script 3 or 4 times to delete all path... #include "_XMLDomWrapper.au3" #include <Array.au3> $sFile = "C:\TEMP\foldercolors.xml" $ret = _XMLFileOpen ($sFile) For $i=1 to _XMLGetNodeCount("/foldercolors/path") $pathstring = _XMLGetValue("/foldercolors/path[" & $i & "]/dir/pathstring") If IsArray($pathstring) Then If NOT FileExists($pathstring[1]) Then _XMLDeleteNode("/foldercolors/path[" & $i & "]") EndIf EndIf Nextfoldercolors.xml
  8. First many thanks for this example... Now my problem... my extension's file is "*.oxc". With this extension, nothing work... if i rename to *.xml, it's ok, value can be read. And i don't understand why existing path are deleted with my script... #include "_XMLDomWrapper.au3" #include <Array.au3> $sFile = "C:\TEMP\foldercolors.oxc" $ret = _XMLFileOpen ($sFile) for $i=1 to 100 $pathstring = _XMLGetValue("/foldercolors/path[" & $i & "]/dir/pathstring") If NOT FileExists($pathstring) Then _XMLDeleteNode("/foldercolors/path[" & $i & "]") EndIf next
  9. Hi, i need help to read <pathstring> value, check if path exists, if not delete from <path color= to </path> Here my xlm file... <?xml version="1.0" encoding="UTF-8"?> <foldercolors> <path color="{2F499E2B-8B6E-4B80-8E3B-C73E032E801F}"> <dir> <pathstring>C:\EXISTE</pathstring> </dir> </path> <path color="{FEDC8A0B-6F3B-4113-A733-17A008C87ADB}"> <dir> <pathstring>C:\NEXISTEPAS</pathstring> </dir> </path> </foldercolors>
×
×
  • Create New...