Moinsen,
das letzte Anführungszeichen ist zuviel ...
Spoiler anzeigen
#include <Process.au3>
Const $dateiname = "c:\TONERSTAND\Kyocera FS3900DN.txt"
Const $inifile = "D:\AUTOIT\Tonerstandplugin.ini"
$i = 0
$y = 1
$x = 0
$Section = IniReadSectionNames ($inifile)
$maxArray = $Section[0]
Dim $DruckerTyp[$maxArray]
Dim $Tonerartikel[$maxArray]
Dim $Tonermeldebestand[$maxArray]
Dim $Tonerbestand[$maxArray]
While $i < $maxArray
$DruckerTyp[$i] = IniRead($inifile, $Section[$y], "DruckerTyp","")
$Tonerartikel[$i] = IniRead($inifile, $Section[$y], "Tonerartikel","")
$Tonermeldebestand[$i] = IniRead($inifile, $Section[$y], "Tonermeldebestand","")
$Tonerbestand[$i] = IniRead($inifile, $Section[$y], "Tonerbestand","")
$i += 1
$y += 1
WEnd
$i = 0
While $i < $maxArray
If $Tonerbestand[$i] <= $Tonermeldebestand[$i] Then
$x += 1
EndIf
WEnd
Dim $Meldungen[$x]
$i = 0
$y = 0
While $i < $maxArray
If $Tonerbestand[$i] <= $Tonermeldebestand[$i] Then
$Meldungen[$x] = " Toner Lagerbestand Kritisch
"& _
$DruckerTyp[$i]& ": "&$Tonerartikel[$i]& _
"
Aktueller Stand: "&$Tonerbestand[$i]
$y += 1
$i += 1
Else
$i += 1
EndIf
WEnd
Wenn Du die Anführungszeichen mit ausgeben möchtest, dann verpacke sie in einfache Anführungszeichen. ![]()
EDIT:
Außerdem ist $Meldungen[$x] auch nicht das was Du möchtest, glaube ich, sollte es nicht $y sein ???
LG
Greenhorn