#include <File.au3>
#include <Array.au3>
Local $debug = True
Local Const $Map_Settings = @ScriptDir & '\Map Settings.log'
Global $True = "True"
Global $False = "False"
$handle_read = FileOpen($Map_Settings)
Local $iCountLines = _FileCountLines($Map_Settings)
While 1
For $l = 1 to $iCountLines
$line_read = FileReadLine($handle_read)
If @error Then ExitLoop
If $debug Then ConsoleWrite('Read Line: ' & $line_read & @CRLF)
If StringInStr($line_read, $True, 2, 1) Then
ConsoleWrite('Result - '& $True &' - '&@MSEC&@CRLF)
;RunWait(@AutoItExe & ' "' & @ScriptDir & '\Directories\Scripts\[0] Monitor Log\Monitor.exe"')
Monitor($True)
ExitLoop
EndIf
If StringInStr($line_read, $False, 2, 1) Then
;RunWait(@AutoItExe & ' "' & @ScriptDir & '\E3.exe"')
E3EXE($False)
ExitLoop
EndIf
Next
Sleep(100)
WEnd
Func Monitor($True)
ConsoleWrite(' - '& $True &' - '&@MSEC&@CRLF)
EndFunc
Func E3EXE($False)
ConsoleWrite(' - '& $False &' - '&@MSEC&@CRLF)
EndFunc
Line-by-line and functions.