Manny,
I don't know VBS code at all. But I figured what the heck, I'll try it.
BTW, I commented out the IF ... THEN msgbox "Fail" statement because mine ran the macro correctly but still displayed the msgbox "Fail."
Here is how the function looks in my ehomeclient.vbs file
- Code: Select all
Function KITCHEN_TIMER_SHOW_ALARM(TimerNumber)
'--- called when kitchen timer fires
'msgbox "KITCHEN_TIMER_SHOW_ALARM " & TimerNumber
if TimerNumber = 1 then
'--- 1st timer fires
Dim sRet
sRet = g_oGbl.EH_PH_MACRO("ph_macro(" & Chr(34) & "TEST" & Chr(34) & ")")
'if sRet = "" then msgbox "Fail"
Else
'--- 2st timer fires
Dim sRet
sRet = g_oGbl.EH_PH_MACRO("ph_macro(" & Chr(34) & "TEST" & Chr(34) & ")")
'if sRet = "" then msgbox "Fail"
End If
'--- if False is returned then eHome will NOT
'--- beep or show anything on the screen
KITCHEN_TIMER_SHOW_ALARM = True
End Function
The ehomeclient.vbs resides on my client machine in the kitchen.