Hallo,
Ich habe 3 Fragen und hoffe, dass mir geholfen werden kann.
1. Ich habe mir einen Mailer von folgender Seite heruntergeladen. http://www.autoitscript.com/forum/index.php?showtopic=23860
Das Skritp habe ich in ein seperates .au3 File getan.
Wenn ich nun in meinem Skript, dass obige .au3 File durch #include aufrufe, dann wir anscheinend direkt das Skript ausgeführt, also eine Mail gesendet. Ist das normal, dass durch #include das Skript ausgeführt wird?
Wie kann ich aber bevor die Mail gesendet wird, noch 2 Variablen im Skript ändern ($Subject und $Body)? Also das Skript soll eben an verschiedenen Stellen ausgeführt werden, das kann ich ja mit #include machen, aber $Subject und $Body, soll jedes Mal anders sein.
2. Wenn ich das obige Skript in ein anderes Skript mit #include einbinde, dann sehe ich in der Autovervollständigung die Funktion dieses Skripts nicht. Warum? Also beim obigen Mail Skript hat es ja eine Funktion _INetSmtpMailCom. Wenn ich dann in einem anderen Skript das Mail Skript mit #include einbinde, dann kommt bei der Autovervollständigung die Funktion _INetSmtpMailCom nicht.
3. Noch eine Frage zu @error. Wenn eine Funktion einen Fehler erzeugt und @error auf 1 setzt, ist dann @error für das gesamte restliche Skript auf 1?