Sieh dir mal Arrays genauer an. (Bugfix hat da auch ein sehr schönes Tutorial zu gemacht)
AutoIt
If $cmdLine[0] > 0 Then
for $i=1 to ubound($cmdLine)-1 step 1
if $cmdLine[$i] = "-i" then
Msgbox(0,"","Install")
elseif $cmdLine[$i] = "-u" then
Msgbox(0,"","Uninstall")
else
Msgbox(16,"Error","Falsche Parameter!"&@crlf&"Erlaubte Parameter: "&@crlf&"-i : install"&@crlf&"-u : uninstall")
endif
next
Else
Msgbox(16,"","Keine Parameter vorhanden.")
Exit
EndIf
Alles anzeigen