Need to sort through a way to organize these.... but it can be done and seems to work great! scrollleft = function(msg) { var macro1name = findObjs({ _type: "macro", _id: "-J9fiY13CHFalnrnFmzn"})[0].get("name"); var macro1action = findObjs({ _type: "macro", _id: "-J9fiY13CHFalnrnFmzn"})[0].get("action"); var macro2name = findObjs({ _type: "macro", _id: "-J9fidotpUxCzVbZZtOV"})[0].get("name"); var macro2action = findObjs({ _type: "macro", _id: "-J9fidotpUxCzVbZZtOV"})[0].get("action"); var macro3name = findObjs({ _type: "macro", _id: "-J9filI9RbRQc-vhufYN"})[0].get("name"); var macro3action = findObjs({ _type: "macro", _id: "-J9filI9RbRQc-vhufYN"})[0].get("action"); findObjs({ _type: "macro", _id: "-J9fiY13CHFalnrnFmzn"})[0].set({name: macro2name}); findObjs({ _type: "macro", _id: "-J9fiY13CHFalnrnFmzn"})[0].set({action: macro2action}); findObjs({ _type: "macro", _id: "-J9fidotpUxCzVbZZtOV"})[0].set({name: macro3name}); findObjs({ _type: "macro", _id: "-J9fidotpUxCzVbZZtOV"})[0].set({action: macro3action}); findObjs({ _type: "macro", _id: "-J9filI9RbRQc-vhufYN"})[0].set({name: macro1name}); findObjs({ _type: "macro", _id: "-J9filI9RbRQc-vhufYN"})[0].set({action: macro1action}); };
scrollright = function(msg) { var macro1name = findObjs({ _type: "macro", _id: "-J9fiY13CHFalnrnFmzn"})[0].get("name"); var macro1action = findObjs({ _type: "macro", _id: "-J9fiY13CHFalnrnFmzn"})[0].get("action"); var macro2name = findObjs({ _type: "macro", _id: "-J9fidotpUxCzVbZZtOV"})[0].get("name"); var macro2action = findObjs({ _type: "macro", _id: "-J9fidotpUxCzVbZZtOV"})[0].get("action"); var macro3name = findObjs({ _type: "macro", _id: "-J9filI9RbRQc-vhufYN"})[0].get("name"); var macro3action = findObjs({ _type: "macro", _id: "-J9filI9RbRQc-vhufYN"})[0].get("action"); findObjs({ _type: "macro", _id: "-J9fiY13CHFalnrnFmzn"})[0].set({name: macro3name}); findObjs({ _type: "macro", _id: "-J9fiY13CHFalnrnFmzn"})[0].set({action: macro3action}); findObjs({ _type: "macro", _id: "-J9fidotpUxCzVbZZtOV"})[0].set({name: macro1name}); findObjs({ _type: "macro", _id: "-J9fidotpUxCzVbZZtOV"})[0].set({action: macro1action}); findObjs({ _type: "macro", _id: "-J9filI9RbRQc-vhufYN"})[0].set({name: macro2name}); findObjs({ _type: "macro", _id: "-J9filI9RbRQc-vhufYN"})[0].set({action: macro2action}); }; You need to add your brand of API parsing and point your "left" "right" macros to the functions.... and of course get your marco _id's.. ... and shift in an array would be better...