Can we use macros in the doCommand?

Forum for discussing building user interfaces for controlling MLServer using the iPhone or iPod Touch.
Blade
Expert
Expert
Posts: 760
Joined: Tue Nov 09, 2004 9:38 pm
Location: Lucan, Ontario
Contact:

Can we use macros in the doCommand?

Postby Blade » Sun Mar 21, 2010 10:05 am

I am trying to send a macro command to the doCommand but it does not seem to be working.
Is this not supported?
Thx

User avatar
mcascio
Founder
Founder
Posts: 8270
Joined: Tue Jan 28, 2003 4:03 pm
Location: Kenosha, Wi
Contact:

Re: Can we use macros in the doCommand?

Postby mcascio » Sun Mar 21, 2010 10:52 am

Try "MLServeCmd.Macro|MacroName"
Mario Cascio
Cinemar, Inc.
http://www.cinemaronline.com

Blade
Expert
Expert
Posts: 760
Joined: Tue Nov 09, 2004 9:38 pm
Location: Lucan, Ontario
Contact:

Re: Can we use macros in the doCommand?

Postby Blade » Sun Mar 21, 2010 11:28 am

Mario,
I am trying to send something like this:

doCommand('Macro|MLMusicLobby|{{music_activemusicsourcenumber_{{clientname}}}}~ToggleSourceShuffle!MLConditional|IsEqual##{{music_source{{music_activemusicsourcenumber_{{clientname}}}}_shuffle}}##1##SetVariable|music_source{{music_activemusicsourcenumber_{{clientname}}}}_shufflename~On##SetVariable|music_source{{music_activemusicsourcenumber_{{clientname}}}}_shufflename~Off');

User avatar
jjjukebox
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1024
Joined: Sat May 22, 2004 9:54 pm
Location: Toronto
Contact:

Re: Can we use macros in the doCommand?

Postby jjjukebox » Sun Mar 21, 2010 4:16 pm

I have been more succesful by using command maps. Take your macro and make it into a command map

eg:doCommand('Your.Command.Map');
J.J. Jukebox
Member

Blade
Expert
Expert
Posts: 760
Joined: Tue Nov 09, 2004 9:38 pm
Location: Lucan, Ontario
Contact:

Re: Can we use macros in the doCommand?

Postby Blade » Sun Mar 21, 2010 5:20 pm

That is what I had to do. I am able to run single commands in the doCommand call but not a macro


Return to “iPhone / iPod Touch Beta”

Who is online

Users browsing this forum: No registered users and 0 guests