Read/Write Cartwall page number remotely

OK I;ve searched for this, but can;t find the answer anywhere, so time to step up and ask a dumb question - if I use airlite/stream deck or even MIDI remotely, I seem unable to determine which cartwall page is active,nor how to set the page I want remotely - cant find a command anywahere - is suchj a thing possible?

Use case: I have cartwall pages set up by category - Station/DJ Drops, then 70s,80s,90s etc each having their own pages. I want to be able to select which page I need remotely, then play a carat from that page…

1 Like

Should be possible via scripting. How many cw-pages do you choose from? (Might take a while however.)

Via script:

Cartwall.SetActivePageIndex(<number>);

I think I could also add a command for that…

3 Likes

Continuing the discussion from Read/Write Cartwall page number remotely:

Thanks for your replies - is it possuble to call script functions via remote commands?

@Torben Yes please to tyhe remote coimmand - you would be my Hero!!

Yes, it is. This would be my game plan so far.

@Torben: Will you do it? Just to know.

@Torben: No need to act, just found this here in stock:

procedure CartDeselect;
var
  i: integer;
begin
  for i := 1 to Cartwall.GetPlayerCount do
    ExecuteCommand('CARTWALL ' + IntToStr(i) + ' DESELECT');
end;

procedure OnExecuteCommand(Command: string);
var
  Cart: integer;
begin
  if Copy(Command, 1, 20) = 'CARTWALL SELECT PAGE' then
    begin
    Cart := StrToInt(Copy(Command, 22, Length(Command) - 20));
    if (Cart > 0) AND (Cart <= Cartwall.GetPages.GetCount) then
      begin
      CartDeselect;
      Cartwall.SetActivePageIndex(Cart - 1);
      CartDeselect;
      end;
    end;
end;

begin
end.

Install as a background script and use the command CARTWALL SELECT PAGE 1 (or respective number).

2 Likes

awesome! Thank you :smiley:

1 Like

Thank you, @Tondose! OnExecuteCommand is exactly the way to go. I just don’t understand the purpose of the DESELECT commands; you don’t need them if you are not using cart selection anyway, and you just want to switch between pages.

Anyway, I have just uploaded snapshot 5835, and the command is now available as CARTWALL PAGE <number>.

3 Likes

@Torben: It’s been a while, so I can’t remember. Maybe there were issues with selected carts while changing pages. Or it was just to be safe not to have selected carts in the background at some point in time.

@Torben

My Hero! :heart: :heart: :heart: :heart: :heart:

:stuck_out_tongue:

1 Like