bigDvette
Expert
Expert
Posts: 718
Joined: Thu Oct 12, 2006 1:19 pm
Contact: Send private message

doPlugin command in MLScript

Thu Apr 03, 2008 11:43 pm

Can someone give an example of how to call the doPlugin command when the plugin requires multiple parameters.

MurrayW
Is there life beyond myServer?
Is there life beyond myServer?
Posts: 1196
Joined: Sun Mar 07, 2004 1:05 pm
Location: Austin, TX
Contact: Send private message

Re: doPlugin command in MLScript

Mon Sep 01, 2008 2:15 am

bigDvette wrote:Can someone give an example of how to call the doPlugin command when the plugin requires multiple parameters.
And in another thread, Ron asked a similar question:
http://www.cinemaronlineforums.com/foru ... ugin#81044

I'm starting to play around with MLScripts and have the same question. For example if within a script I wanted to call this command:

Code: Select all

MLServeCmd.MLDirectv|001~Key~Guide
, what would the doPlugin syntax be? And would doPlugin be better than the cmdreceive or cmdreceivepush syntax (ala Ron's question)?

Something like this?

Code: Select all

MLServer.doPlugin MLDirectv, 001, Key, Guide
thanks,
Murray

User avatar
AllonisDave
Founder
Founder
Posts: 11604
Joined: Fri Feb 07, 2003 8:56 am
Location: Newport Beach, CA
Contact: Send private message

Mon Sep 01, 2008 1:58 pm

You do not need to call doPlugin. You would simply say

MLServer.cmdReceive "MLDirectv|001~Key~Guide"

The only time you want to call doPlugin is if you are calling a function in a plugin that returns a variable. Very few plugings support this.

The difference between cmdReceive and cmdReceivePush is that cmdReceive gets executed immediately and cmdReceivePush places the command into MLServer's command queue to be executed in turn.

MurrayW
Is there life beyond myServer?
Is there life beyond myServer?
Posts: 1196
Joined: Sun Mar 07, 2004 1:05 pm
Location: Austin, TX
Contact: Send private message

Mon Sep 01, 2008 2:11 pm

CinemarDave wrote:You do not need to call doPlugin. You would simply say

MLServer.cmdReceive "MLDirectv|001~Key~Guide"

The only time you want to call doPlugin is if you are calling a function in a plugin that returns a variable. Very few plugings support this.

The difference between cmdReceive and cmdReceivePush is that cmdReceive gets executed immediately and cmdReceivePush places the command into MLServer's command queue to be executed in turn.
Dave,
Thanks for the explanation...I spent a few hours last night working on scripts and I guess I am lucky that I picked MLServer.cmdReceive!

Murray

Return to “MLScript”

Who is online

Users browsing this forum: No registered users and 2 guests