The classic "Recursion level has been exceeded - AutoIt will quit to prevent stack overflow" error in AutoIt. I made these 2 scripts to test the Recursion levels in AutoIt: This is the first script I made: Global $iRecursionLevel = 0 X() Func X() Y() EndFunc Func Y() $iRecursionLevel += 1 ConsoleWrite($iRecursionLevel & @CRLF) X() EndFunc It made ran until the $iRecursionLevel exceeded 1899. The next script I