Issuing MLServerCmd for specific client

Post your general questions and comments about PhotoLobby here
User avatar
itanic
Intermediate
Intermediate
Posts: 455
Joined: Tue Jun 15, 2004 10:05 am
Location: Oregon
Contact:

Issuing MLServerCmd for specific client

Postby itanic » Sat Jan 24, 2009 6:16 pm

I was hoping to use PhotoLobby for a screensaver and was wondering how you specify the specifc client you want to issue MLServer commands to. They all seem generic without client options.

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Postby CinemarDave » Sat Jan 24, 2009 11:40 pm

You will have to wrap the MLPhotoLobby commands in a MLScript and use the MLServer.CmdReceiveClient <<command>>,<<client>> command to send the command as the client.

User avatar
itanic
Intermediate
Intermediate
Posts: 455
Joined: Tue Jun 15, 2004 10:05 am
Location: Oregon
Contact:

Postby itanic » Sun Jan 25, 2009 10:54 am

Dave,

Thanks for the help. I don't see this command "MLServerCmdReceiveClient" in the wiki - must be undocumented. Anyway, I'm have problems getting started. I've tried the following MLScript figuring its the first step in the process but I get no response (Params(0) is "DenPC") or error message in the log.

Sub StartScreenSaver(Params)

MLServer.CmdReceiveClient "MLServeCmd.MLPhotoLobby|SetFolder~3,"&Params(0)

End Sub

After I get this working, I figure to set the variable "Photos_selecteditem_{{clientname}} to "1" and then run the Select.Photoitem command map. Do you see any problems with this approach?

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Postby CinemarDave » Sun Jan 25, 2009 8:24 pm

Code: Select all

Option Explicit

Sub StartScreenSaver(Params)
   MLServer.CmdReceiveClient "MLPhotoLobby|SetFolder~3", Params(0)
End Sub


Assuming the MLScript was named "ScreenSaver" then the complete MLScript syntax would be

MLScript|ScreenSaver~StartScreenSaver~{{clientname}}


Return to “PhotoLobby 3”

Who is online

Users browsing this forum: No registered users and 1 guest