Libraryless. Click here for Pure Java version (2342L/15K/52K).
!752 static S mp = "Music Player"; static double interval = 1; p { S lastFile = null; int count = 0; while licensed { pcall { if (matchStart("no", send(mp, "are you playing")) && matchStart("no", send(mp, "are you paused"))) ++count; if (count >= 2) { count = 0; S file = send(mp, "get file"); if (eq(file, lastFile)) { //print("Playing again."); send(mp, "play again"); } /*else print(format("Files differ: * vs *", file, lastFile));*/ lastFile = file; } } sleepSeconds(interval); } }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1004420 |
| Snippet name: | Repeat Music [see #1003779] |
| Eternal ID of this version: | #1004420/1 |
| Text MD5: | 8c41ac90e3f6d96c95065ad8b9bf78fa |
| Transpilation MD5: | 6c282ca93054b54417987059310a7fad |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-08-16 17:33:02 |
| Source code size: | 637 bytes / 27 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 741 / 901 |
| Referenced in: | [show references] |