Jump to content

Mannyfresh31

Active Members
  • Posts

    95
  • Joined

  • Last visited

About Mannyfresh31

  • Birthday 04/15/1986

Profile Information

  • Interests
    Learn this beautiful and useful programming language (;

Recent Profile Visitors

485 profile views

Mannyfresh31's Achievements

Wayfarer

Wayfarer (2/7)

15

Reputation

  1. 128 de memoria se puede? Megabytes? Arduino_20_Pines_Metodo_de_Bloqueo_de_Volumen_Invertido_Send_Ke.txt
  2. This doen't work either #include<Array.au3> #include <MsgBoxConstants.au3> #include <StringConstants.au3> $Reg = StringRegExp("My name is Manuel", "(Manuel)(?(1))yes|no",3) if IsArray($Reg) Then _ArrayDisplay($Reg) Else ConsoleWrite($Reg & @CR) EndIf IDK if you get me
  3. I want or I expect something like Ternary and if then... look let me explain it to you $Reg = StringRegExp("My name is Manuel", "(?<named>name)(?(<named>)(My)|(is))",3) if (?(<named>) is true meaning if the group name "named" is found since it has been declared "named" by (?<named>name) it should output (My) since (My) is in the conditional yes (?(<named>)(My)|(is)) and if group name "named" is not found return "is" as it is in the No conditiomal
  4. I Know about if then..and ternary but the problem here is that #include<Array.au3> #include <MsgBoxConstants.au3> #include <StringConstants.au3> $Reg = StringRegExp("My name is Manuel", "(?<named>name)(?(<named>)(My)|(is))",3) if IsArray($Reg) Then _ArrayDisplay($Reg) Else ConsoleWrite($Reg & @CR) EndIf the code above doesn't work while the code below does or atleast return something not what i want because I dont see the conditional to work just a match returned which is pointless to me if someone can clarify this thing for me I would appreciate a lot #include<Array.au3> #include <MsgBoxConstants.au3> #include <StringConstants.au3> $Reg = StringRegExp("My name is Manuel", "(?<named>name)(?(<named>))",3) if IsArray($Reg) Then _ArrayDisplay($Reg) Else ConsoleWrite($Reg & @CR) EndIf
  5. I know about the If..Then..Else EndIf conditional but I have no clue on how to construct the StringRegExp conditionals I have tried but I must be doing something wrong check the following example I can't make it work please help I want it to reply Yes or No   #include<Array.au3> #include <MsgBoxConstants.au3> #include <StringConstants.au3> $Reg = StringRegExp("My name is Manuel", "(Manuel)(?(1)Yes|No))" ,1) if IsArray($Reg) Then _ArrayDisplay($Reg) Else ConsoleWrite($Reg & @CR) EndIf
  6. I need help understanding the use of conditionals in StringRegExp() as I don't quite understand the info in the help file Please help πŸ™‚ StringRegExp() help doc https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm These constructs are similar to If...EndIf and If...Else...EndIf blocks. (?(condition)yes-pattern) Allows conditional execution of pattern. (?(condition)yes-pattern|no-pattern) Chooses between distinct patterns depending on the result of (condition). (n) Tests whether the capturing group with absolute number n matched. (+n) Tests whether the capturing group with relative number +n matched. (-n) Tests whether the capturing group with relative number -n matched. (<name>) Tests whether the capturing group with name name matched. (R) Tests whether any kind of recursion occured. (Rn) Tests whether the most recent recursion was for capturing group with absolute number n. (R&name) Tests whether the most recent recursion was for capturing group with name name. (DEFINE) Used without no-pattern, permits definition of a subroutine useable from elsewhere. "(?x) (?(DEFINE) (?<byte> 2[0-4]\d | 25[0-5] | 1\d\d | [1-9]?\d) )" defines a subroutine named "byte" which matches any component of an IPv4 address. Then an actual address can be matched by "\b (?&byte) (\.(?&byte)){3} \b". (assertion) Here assertion is one of positive or negative, look-ahead or look-behind assertion.
  7. @argumentum ok I'll add the "[Solved]" just to make you happy (; Today is your day baby!!
  8. You got it!!! Now all work fine thanks!!! ;First Example Dim $aArray[2][2][2] $aArray[0][0][0] = 1 $aArray[0][0][1] = 2 $aArray[0][1][0] = 3 $aArray[0][1][1] = 4 $aArray[1][0][0] = 5 $aArray[1][0][1] = 6 $aArray[1][1][0] = 7 $aArray[1][1][1] = 8 For $a = 0 to 1 for $b = 0 to 1 for $c = 0 to 1 ConsoleWrite($aArray[$a][$b][$c] & @CRLF) Next Next Next ;Secound Example Local $aArraym [2][2][2]=[[[1,2],[3,4]],[[5,6],[7,8]]] For $a = 0 to 1 for $b = 0 to 1 for $c = 0 to 1 ConsoleWrite("Here I come " & $aArraym[$a][$b][$c] & @CRLF) Next Next Next
  9. Please help with this 3D Array the first example works the secound doesn't. Need help to understand how Arrays work. Many thanks in advance ;First Example Dim $aArray[2][2][2] $aArray[0][0][0] = 1 $aArray[0][0][1] = 2 $aArray[0][1][0] = 3 $aArray[0][1][1] = 4 $aArray[1][0][0] = 5 $aArray[1][0][1] = 6 $aArray[1][1][0] = 7 $aArray[1][1][1] = 8 For $a = 0 to 1 for $b = 0 to 1 for $c = 0 to 1 ConsoleWrite($aArray[$a][$b][$c] & @CRLF) Next Next Next ;Secound Example Local $aArraym [2][2][2]=[[[1,2,],[3,4],[5,6],[7,8]]] For $a = 0 to 1 for $b = 0 to 1 for $c = 0 to 1 ConsoleWrite($aArraym[$a][$b][$c] & @CRLF) Next Next Next
  10. @Skeletor sorry I left It in Spanish my bad and yes It opens both but It doesn't do what It supposed to do "get all videos's links from YT Page" 😞 from Channel in vídeos section of course 😞
  11. Ok guys thanks for the replies but It has nothing to do with settings
  12. Yes yes It brings Edge instead of IE It used to work just fine but not anymore I just want to cry 😞
Γ—
Γ—
  • Create New...