Hi Ferengi-Master
Das ist echt ein Super Script. Danke!
Habe es noch etwas umgewandelt, damit ich die Ansage noch einmal am selben tag (also den Ereigniss tag) vorgelesen bekomme.
Bin ausserdem (dank eines anderen Mitglied hier im Forum) von TTS auf VoiceReader umgestiegen. (Finde die Stimme irgendwie schöner).
Funktioniert soweit auch gut.
Nun möchte ich mir aber noch die Daten in einem kleinen Fenster im Designer anzeigen lassen.
Also so ähnlich wie:
Heute Geburtstag: NameXXX
Morgen Geburtstag: NameXXX
Aber irgendwie kann ich die daten nicht auslesen lassen.
Und da ich leider immer noch kein Spezi bin wäre es nett, wenn du mir mal helfen könntest.
Hier mal das überarbeitete Skipt:
<?
/*
*******************************
IP-SYMCON Event Scripting
*******************************
File : Termin.ips.php
Trigger :
Interval :
*/
function say($text)
{
IPS_Execute("C:/doVoice.exe", $text,false,false);
}
$termin = array(
"22","01","hat xxx, Geburtstag",
"29","01","haben xxx, Geburtstag",
"30","01","hat xxx, Geburtstag",
"18","02","hat xxx", //18.02
"19","02","hat xxx",//19.02
"11","03","hat xxx, Geburtstag",
"08","04","xxx",
"15","04","xxx Geburtstag",
"18","04","xxx, Geburtstag",
"21","04","xxx, Geburtstag",
"18","04","xxx, Geburtstag",
"09","05","xxx, Geburtstag",
"12","05","xxx",
"15","05","xxx, Geburtstag",
"16","05","xxx, Geburtstag",
"18","05","haben xxx, Geburtstag",
"02","06","hat xxx, Geburtstag",
"25","06","hat xxx, Geburtstag",
"11","07","hat xxx, Geburtstag",
"20","07","hat xxx, Geburtstag",
"21","07","hat xxx Geburtstag",
"11","08","hat xxx, Geburtstag",
"15","08","hat xxx Geburtstag",
"17","08","haben xxx, ihren ersten Hochzeitstag",
"19","08","hat xxx, Geburtstag",
"01","09","hat xxx, Geburtstag!",
"03","09","hat xxx Maester Geburtstag",
"30","09","hat xxxGeburtstag",
"01","10","hat xxx Geburtstag",
"19","10","hat xxx, Geburtstag",
"04","11","hat xxx Geburtstag",
"19","11","hat xxx, Geburtstag",
"13","12","hat xxx Geburtstag",
"14","12","hat xxxGeburtstag",
"16","12","haben xxx, Geburtstag",
"23","12","hat xxxGeburtstag",
"27","12","hat Patrick Baar, Geburtstag");
$i=0;
$terminanzahl = count($termin); //Termine zählen
//----------------------------- Termine suchen --------------------------------
for ($i=0; $i<$terminanzahl; $i=$i+3)
{
$tag = $termin[$i];
$monat = $termin[$i+1];
$heute = mktime (0,0,0,date("m"),date("d"),2007);
$termin_dat = mktime (0,0,0, $monat, $tag ,2007);
$diff = $heute-$termin_dat;
$erg = $diff/((60*60)*24);
$Datum = date ("d.m.");
DXMedia_Open(27787, "C:/WINDOWS/Media/ding.wav");
DXMedia_Play(27787);
DXMedia_SetVolume(27787, 100);
//------------------------ Termine für Morgen ansagen--------------------------
if ($erg == 0)
{
say ("Achtung: nochmalige Terminansage! Heute also am $Datum " .$termin[$i+2]);
}
if ($erg == -1)
{
say ("Achtung: Neuer Termin! Morgen" .$termin[$i+2]);
}
}
?>
Danke und
Gruß Xanon