Smart Start/Fade Script

I’d like to set my mixer start buttons up in a special way, and I need a script to do it - I think 2 (1 for each player), unless it can be done with one… Here’s my setup:

1 Playlist, 2 Players. They run to 2 faders on the desk, which I can Start/Stop using the buttons. I’d like to have them engage Automation 1 Next if mAirList is in Auto and I start the waiting Player… If it’s in Auto and I press the Player Start that’s playing, it Stops (with a fade) Auto.

Here’s my formula:

Button 1 Action:

IF Automation1(true) and Player1(playing) THEN
Automation1(stop)
ELSE
IF Automation1(true) and Player1(stopped) THEN
Automation1(next)
ELSE
Player1Stop

I guess I’d have the same for script for Button2? I think that would be right. Not sure if that’ll make sense, but here’s hoping! This is my “get-around” as the Players are locked in Auto, but it is also quicker for the DJ to ride the faders and use the buttons.