Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/15/2023 in all areas

  1. Hi folks, thanks for the input. Since I have to stick with 3.3.8.1 on Windows I used FileFindFirstFile with wildcards and then FileFindNextFile and then I read the first line of the file to check for the string (I have the luck that my search string is always in the first line of those files) with StringInStr. Since that works fine, I will do it that way. Regards dolphins
    1 point
  2. mikell

    Regex how to?

    $txt = "Connection mode : Profile" & @crlf & _ " Channel : 4" & @crlf & _ " Receive rate (Mbps) : 300" & @crlf & _ " Transmit rate (Mbps) : 65" & @crlf & _ " Signal : 83%" & @crlf & _ " Profile : AndroidAP_4013" & @crlf & _ @crlf & _ " Hosted network status : Not available" Msgbox(0,"", StringRegExp($txt, 'Profile\h*:\h?(.*)', 1)[0] ) Use \h? to avoid matching a space between the colon and the A
    1 point
  3. I usually do this when I use few constants but if I use more functions and constants I include the whole UDF. If this is a bad idea? It really depends. If there is a function that is called every second it's not the best way. I hope to see soon in AutoIt implemented local static constants, so we can have something like this: Func Test() Local Static Const $MB_OK = 0 ... EndFunc
    1 point
  4. Latest update just released. See below for change log.
    1 point
×
×
  • Create New...