This is an AREXX script for EaglePlayer 2 that toggles between play and pause. To use the file, save it as EP_TogglePlay.rexx
and then execute:
rx EP_TogglePlay.rexx
The script can be useful in order to toggle the playing status remotely over telnet.
/*************************************************************************/ /* Copyright (C) 2015 Wizardry and Steamworks - License: GNU GPLv3 */ /*************************************************************************/ /* Toggles between pause and play in EaglePlayer2. */ /*************************************************************************/ if pos('rexx_EP',SHOW('Ports')) == 0 then do say 'EglePlayer2 not started...' exit end address 'rexx_EP' options results status g ply if result == "yes" then do say 'Stopping...' play 0 end else do say 'Starting...' play 1 end