Is there a way to write a macro that cycles through multiple outputs

For example I want a single keypress combo to do play canvas > activate effect A > activate effect B > activate effect C > pause canvas as I press it, instead of having different keypress combos for each thing