Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/06/2022 in all areas

  1. Many people wanted to see the content of an array inside another array using either _ArrayDisplay or _DebugArrayDisplay. Now it is possible with this UDF. But first I want to give my sincere congratulations to those who have invested long efforts to create ArrayDisplayInternals.au3 (Melba23, jpm, LarsJ, pixelsearch). Most of the code and ingenuity come from those authors. I would say over 90% of the code comes from the original UDF. With this new UDF, you can dig into a tree of arrays inside arrays as deep as you want. There is no limit on the levels of recursion. When you click on an {array} cell, it will bring you a new window (either _ArrayDisplay or _DebugArrayDisplay depending what was called first). Although there is no limit on recursion levels, there is a few limitations that must be mentioned : You need to close all windows before ending the UDF (you can exit script on any level in debug mode) You can only show one array per level at a giving time You cannot manipulate a lower level window untill its child has been closed Example : #include "ArrayDisplayInternalsEX.au3" Local $a = ["a", 2, 3] Local $b = [["x", "y", $a, "z"], [1, $a, 2, 3], [$a, "a", "b", "c"]] Local $c = ["x", "y", 1, $b, "a", 8 ,9 , 10, 11, 12, 13, "abcdef"] _DebugArrayDisplayEX($c, "Test") Enjoy ! ArrayDisplayInternalsEX.au3
    1 point
  2. Here is a rewrite of Wards Curl UDF with the binary portion removed so that it can support external (updated) library's and add support for x64. I added quite a few new header constants and also have included the curl-ca-bundle certificate. I modified the first two "easy" examples to demonstrate using the ca-bundle to verify the SSL peer. I also added a new example showing how to download the certificate chain. The 7.82.0 version dlls are included but they can be replaced with updated versions as they come out in the future. You can find future releases here : https://curl.se/windows/ Let me know if you have any issues. Cheers! 🙂 Curlx64.7z
    1 point
  3. jchd

    stringregexp issue

    When you have a fix translate table and need to use it many times, you could make it this way: Local $mXlate[] $mXlate["A"] = "Z" $mXlate["B"] = "Y" $mXlate["C"] = "X" $mXlate["D"] = "W" $mXlate["E"] = "V" $mXlate["F"] = "U" $mXlate["U"] = "F" $mXlate["V"] = "E" $mXlate["W"] = "D" $mXlate["X"] = "C" $mXlate["Y"] = "B" $mXlate["Z"] = "A" Local $sOut = Execute("'" & StringRegExpReplace("ABCDEF...UVWXYZ", "([A-FU-Z])", "' & $mXlate['$1'] & '") & "'") ConsoleWrite($sOut & @LF)
    1 point
  4. Could it be related to the fix concerning hexa leading spaces that @Jon solved in this post ? He needs to read the current thread because though -(0x46) works, it really needs to be fixed.
    1 point
  5. @Danp2 <cite> can you explain more what your script is doing?</cite> There was a major release upgrade for our PPS For many articles in the PPS there are CAD drawings. One possible property of articles is the name of the associated drawing for the old PPS system there was a java servlet that did return the drawing name for a given article number: Example: $URL='http://10.27.10.81/Fehlteil/ident2zeichnr.jsp?identnr="123456"' It always [200] returned content: either holding the name of the according drawing, or, if the article existed but no drawing, or even the article didn't exist at all a "empty page" (http 200) any @error returned pointed out a malfunction of the java servlet URL (what showed up time by time, quite rarely) This java servlet had to be rewritten due to the release upgrade mentioned above, and this was done using different java servlet tools. Now the behavior changed: Article exists, property "drawing" is populated: http [200] <drawing name> Article exists, property "drawing" not populated: http [404] "ERROR: ZEICHNR NOT FOUND" Article doesn't exist at all: http [404] "ERROR: IDENTNR NOT FOUND" My script for the old java servlet used inetread(), also tried inetget(), both return just an error but not the content of the html [404] page. Thanks for your help, Rudi.
    1 point
  6. Thank you. This is the solution that I seek. I appreciate your time.
    1 point
×
×
  • Create New...