i am making a pm rotator script
i get an odd error code when my scripts first timer hits 1 minute
debug:
Script is starting
Script is now loaded and ready
Function called: OnEvent_Initialize
Function called: OnEvent_Timer
Error: Object expected.
Line: 15. Code: -2146823281.
Function OnEvent_Timer returned an error. Code: -2147352567
code:
function OnEvent_Initialize(MessengerStart)
{
MsgPlus.DisplayToast("PM-Rotate","PM-Rotate engaged.");
Messenger.MyPersonalMessage="Hey!";
MsgPlus.AddTimer("dorotatea",60000);
}
function OnEvent_Uninitialize(MessengerExit)
{
MsgPlus.DisplayToast("PM-Rotate","PM-Rotate successfully disengaged.");
}
function OnEvent_Timer(TimerId)
{
PlaySound("change.mp3");
if(TimerId = "dorotatea")
{
Messenger.MyPersonalMessage="Yo!"
MsgPlus.AddTimer("dorotateb",60000);
}
if(TimerId = "dorotateb")
{
Messenger.MyPersonalMessage="
";
MsgPlus.AddTimer("dorotatec",60000);
}
if(TimerId = "dorotatec")
{
Messenger.MyPersonalMessage="Are you there?";
MsgPlus.AddTimer("dorotated",60000);
}
if(TimerId = "dorotated")
{
Messenger.MyPersonalMessage="I'm here!";
MsgPlus.AddTimer("dorotatea",60000)
}
}