- Code: Select all
'=================================================================
Function REMOTE_CMD(sCMD, sParam)
'--- cmds sent by remote - PPC
'msgbox "REMOTE_CMD()"
End Function
This is called every time a socket server command is received.
So lets create a new command...
You could add this code to create a new speak command to make any eHome computer speak.
- Code: Select all
'=================================================================
Function REMOTE_CMD(sCMD, sParam)
Select Case sCMD
Case "EH_NEW_CMD" '--- TEST!!!
msgbox "test NEW command recieved! --> param is: " & sParam
Case "EH_SPEAK_TO_ME" '--- SPEAK!!!
g_oGbl.EH_Speak sParam
End Select
End Function
NOTE: If you do create a command. Preface it with EH_

