Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/25/2023 in all areas

  1. jchd

    Kobo Cover Fixer

    In case you need, send me a D/L link to your database, list your requirements and I'll try to help as much as I can.
    2 points
  2. water

    AD - Active Directory UDF

    Version 1.6.3.0

    17,277 downloads

    Extensive library to control and manipulate Microsoft Active Directory. Threads: Development - General Help & Support - Example Scripts - Wiki Previous downloads: 30467 Known Bugs: (last changed: 2020-10-05) None Things to come: (last changed: 2020-07-21) None BTW: If you like this UDF please click the "I like this" button. This tells me where to next put my development effort
    1 point
  3. Just download and install from here; nothing else is needed. It's definitely not just a wrapper! I wrote the included dll's too, and the utilities, tutorials, test scripts, and the extensive online Help. The current installer stores it under C:\Program Files (x86?), but you can move the directory anywhere else after installing (just update the path in any script that includes it). If upon first run an E4A script cannot find the path to the dll, open the Eigen4AutoIt.ini file in your script's current directory and change the DLLPATH variable to where you placed the main E4A directory (without final backslash).
    1 point
  4. The problem was Windows UAC
    1 point
  5. jchd

    Kobo Cover Fixer

    Yes, I mean FTS (3, 4 or5). FTSx is a (set of) virtual tables, at least as SQLite implement them.
    1 point
  6. Just to say both files aren't strictly identical. In the script extracted from the zip file, 3 missing spaces will generate an error : error: Missing space before continuation $sFormatted = "{\f" & $iFontIndex &_ "\cf" & $iColIndex &_ "\fs" & $iSize * 2 & $sFontStyle &_ Zedna's script doesn't generate errors as it got the right syntax & _
    1 point
  7. You are very close. According to your first post, you are trying to change the text of the <value> node of the <setting> node that has a "name" attribute equal to "SubprocessNotAllowed". Your xpath correctly selects the <setting> node. However, the node you want to modify is the child <value>. The example script below is one way that it could be done. Note that I used the .SelectSingleNode method because there should be only one matching node. Using .selectSingleNode removes the need to do a FOR loop on what is ultimately a single node. Example script: #AutoIt3Wrapper_AU3Check_Parameters=-w 3 -w 4 -w 5 -w 6 -d #include <Constants.au3> xml_example() Func xml_example() Local $oComErr = ObjEvent("AutoIt.Error", "com_error_handler") #forceref $oComErr Local $oValueNode = Null With ObjCreate("Msxml2.DOMDocument.6.0") ;Load XML document .PreserveWhitespace = False .load(@ScriptDir & "\ProcessControl.dll.config") If .parseError.errorCode Then Exit MsgBox($MB_ICONERROR + $MB_TOPMOST, "XML PARSING ERROR", .parseError.reason) ;Select node of interest $oValueNode = .selectSingleNode('//setting[@name="SubprocessNotAllowed"]/value') If Not IsObj($oValueNode) Then Exit MsgBox($MB_ICONERROR, "Error", "Value node not found.") ;Display XML before change (parent node is displayed for context) ConsoleWrite("Value Before" & @CRLF) ConsoleWrite($oValueNode.selectSingleNode('..').xml & @CRLF) ;parent node ;Modify text of "value" node $oValueNode.text = "some,new,value" ;Display XML after change (parent node is displayed for context) ConsoleWrite(@CRLF & "Value After" & @CRLF) ConsoleWrite($oValueNode.selectSingleNode('..').xml & @CRLF) ;parent node ;~ ;Save new file ;~ .Save(@ScriptDir & "\New.ProcessControl.dll.config") EndWith EndFunc Func com_error_handler($oError) With $oError ConsoleWrite(@CRLF & "COM ERROR DETECTED!" & @CRLF) ConsoleWrite(" Error ScriptLine....... " & .scriptline & @CRLF) ConsoleWrite(" Error Number........... " & StringFormat("0x%08x (%i)", .number, .number) & @CRLF) ConsoleWrite(" Error WinDescription... " & StringStripWS(.windescription, $STR_STRIPTRAILING) & @CRLF) ConsoleWrite(" Error RetCode.......... " & StringFormat("0x%08x (%i)", .retcode, .retcode) & @CRLF) ConsoleWrite(" Error Description...... " & StringStripWS(.description , $STR_STRIPTRAILING) & @CRLF) EndWith Exit EndFunc Console output: Value Before <setting name="SubprocessNotAllowed" serializeAs="String"> <value>MPWB,MPCL,HDLT,ARLT,MTOG,PDCP</value> </setting> Value After <setting name="SubprocessNotAllowed" serializeAs="String"> <value>some,new,value</value> </setting>
    1 point
×
×
  • Create New...