Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/15/2022 in all areas

  1. Introduction This UDF will allow you to interact with any browser that supports the W3C WebDriver specifications. Supporting multiple browsers via the same code base is now possible with just a few configuration settings. Requirements JSON UDF https://www.autoitscript.com/forum/topic/148114-a-non-strict-json-udf-jsmn WinHTTP UDF https://www.autoitscript.com/forum/topic/84133-winhttp-functions/ WebDriver for desired browser Source Code You will always be able to find the latest version in the GitHub Repo Help / Support See the wiki for details on the UDF -- https://www.autoitscript.com/wiki/WebDriver Please post any questions, suggestions or errors in a new thread in the GH&S section. Previous support threads (Closed) https://www.autoitscript.com/forum/topic/192730-webdriver-udf-help-support/ https://www.autoitscript.com/forum/topic/201106-webdriver-udf-help-support-ii/ https://www.autoitscript.com/forum/topic/205553-webdriver-udf-help-support-iii/ https://www.autoitscript.com/forum/topic/208640-webdriver-udf-help-support-iv/
    1 point
  2. The custom data uses twelve separate SQL SELECTS. Each takes approximately 0.5 sconds to return. This causes a six second delay. Compound this with some bad script design and it causes a major delay. I have reduced all SQL SELECTS into a single query, and split the array into variables. PDF creation time is now between 2-4 seconds each.
    1 point
  3. Hi everybody mikell kindly shared with me his 2nd regex version for adding thousands separators. This 2nd version takes care of negative numbers too. I told him that his regex was important for the AutoIt community and it should really find its place in the Forum. So with his permission, I post his code & comments concernant the \G anchor. All credits are his, when he started with version 1 in this link ; mikell's thousands separator version 2 (november 2020) $sInput = "-10024000.22345" $sOutput = StringRegExpReplace($sInput, '\G([+-]?\d+?)(?=(\d{3})+(\D|$))', '$1,') MsgBox(0, "mikell wiz \G - Result before and after", $sInput & @CRLF & $sOutput) #cs How \G works : \G is an anchor which matches at the beginning of the subject string or at the end of the previous match. In this case it is used as a "forced failure" tool : 1. first \G matches at the beginning of the string 2. then the regex searches for ("+" or "-" (optional) and one or more digits) followed by (one or more 'packs' of 3 digits and a non-digit or the end of string). "-10" matches 3. \G matches right after "-10", the regex restarts searching from this position in the same way than 2. and "024" is found 4. \G matches right after "024", the regex keeps on searching but the condition in 2. is not fulfilled any more, so the regex fails and the final result is returned #ce
    1 point
×
×
  • Create New...