This shows you the differences between two versions of the page.
Previous revision | |||
— | fuss:eagleplayer2 [2022/04/19 08:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Toggle Between Pause and Play ====== | ||
+ | This is an AREXX script for EaglePlayer 2 that toggles between play and pause. To use the file, save it as '' | ||
+ | |||
+ | <code dos> | ||
+ | rx EP_TogglePlay.rexx | ||
+ | </ | ||
+ | |||
+ | The script can be useful in order to toggle the playing status remotely over telnet. | ||
+ | |||
+ | <file rexx EP_TogglePlay.rexx> | ||
+ | / | ||
+ | /* Copyright (C) 2015 Wizardry and Steamworks - License: GNU GPLv3 */ | ||
+ | / | ||
+ | /* Toggles between pause and play in EaglePlayer2. | ||
+ | / | ||
+ | |||
+ | if pos(' | ||
+ | do | ||
+ | say ' | ||
+ | exit | ||
+ | end | ||
+ | |||
+ | address ' | ||
+ | options results | ||
+ | |||
+ | status g ply | ||
+ | if result == " | ||
+ | do | ||
+ | say ' | ||
+ | play 0 | ||
+ | end | ||
+ | else | ||
+ | do | ||
+ | say ' | ||
+ | play 1 | ||
+ | end | ||
+ | </ |