23rd August 2008 - There was an issue with our name caching server at around 08:00AM GMT. It has been fixed.

Creating your own socket server commands

Scripting help and - or code

Creating your own socket server commands

Postby JakeBullet on Sat May 24, 2008 5:40 pm

If you check out your ehomeClient.vbs file you will find...

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_
JakeBullet
Site Admin
 
Posts: 1101
Joined: Thu Mar 23, 2006 8:13 am

Return to Screen Designer Scripting

Who is online

Users browsing this forum: No registered users and 1 guest



FREE FORUM Hosting by AtFreeForum. Create your Free WEB FORUM Hosting now!
GROUP DISCUSSION Features - Free FORUM HOSTING Directory Listing - DISCUSSION FORUM Terms of Service - FREE PHPBB Hosting Privacy
- FASHION ACCESSORIES
cron