Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/20/2023 in all areas

  1. But do you understand why $SEND_RAW is working for you ?
    1 point
  2. Even simpler solution with regex: #include <Array.au3> $sString = FileRead("The.Girl-UTF.srt") $aSplit = _regex_split($sString, "\R{2,}") _ArrayDisplay($aSplit) ; #FUNCTION# ==================================================================================================================== ; Name ..........: _regex_split ; Description ...: separates a string of separators described by a regular expression. ; The separators are not part of the result strings. ; Syntax ........: _regex_split($sString, $sSplitPattern) ; Parameters ....: $sString - string, which should be split ; $sSplitPattern - regular expression which defines the separation pattern. ; $dFlag - Flag for StringSplit() ; Return values .: 1D-Array containing the substrings split based on the separators. ; Author ........: AspirinJunkie ; Modified ......: 2023-03-23 ; Example .......: $aSplit = _regex_split("Hello:world:foo://:bar", ':(?!\/\/)') ; =============================================================================================================================== Func _regex_split($sString, Const $sSplitPattern, Const $dFlag = 3) Return StringSplit( _ StringRegExpReplace($sString, $sSplitPattern, Chr(0)), _ Chr(0), $dFlag) EndFunc
    1 point
  3. Version 1.2

    29,291 downloads

    I wrote an introductory text for new programmers to learn how to code using AutoIt. It follows along with the help file for the most part – but provides additional context and attempts to connect all the information in a cohesive way for someone without any programming experience. I find the help file to be an AMAZING resource and the text I wrote in no way reflects any opinion to the contrary. Rather, it was created from the perspective of someone who struggled early on with the most basic concepts and thought that a hand-holding guide could be useful. I was also inspired by code.org who is trying to encourage people to learn to code. I thought – what better way than to use free tools that you can download at any time with access to an amazing community? If only there was a guide to walk people through it … Full discussion about the file can be found here: https://www.autoitscript.com/forum/topic/174205-introductory-learn-to-program-text-using-au3/
    1 point
×
×
  • Create New...