ShareShortcuts

IsSongPlayingOrPaused

weplaydr
„IsSongPlayingOrPaused“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit weplaydr die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
32K
Gesichert
1
Aktionen
15
Kategorie
Music
Version
1.1
Sprache
EN

IsSongPlayingOrPaused 1/0 SHORTCUTS HAS NO NATIVE SUPPORT TO DETERMINE WHETHER OR NOT CURRENT SONG IS PLAYING OR PAUSED. This is carefully crafted to first circumvent possible conversion errors by CASTING PLAYBACK POSITION TO NUMBER (Type); sampling twice; then test whether delta is non-zero.

Neue Funktionen

Version 1.1

An extraneous nop action deleted from script.

Versionsverlauf
1.1 23. Mai 2023

An extraneous nop action deleted from script.

1.0 23. Mai 2023

First release

Was er macht

15 Aktionen
  1. Get Current Song
  2. Number
  3. Set Variable
    t0
  4. Comment
    ENABLES SHORTCUTS TO DETERMINE WHETHER IsSongPlayingOrPaused 1/0 APPLE SHORTCUTS HAS NO NATIVE SUPPORT TO DETERMINE WHETHER OR NOT A SONG IS CURRENTLY PLAYING. Tuesday May 23, 2023 WRITTEN BY [email protected] PayPal.Me/Edmonton/10
  5. Nothing
  6. Comment
    The above NOP + Comment increases Time Delta by 100ths of a second
  7. Number
  8. Wait
  9. Get Current Song
  10. Number
  11. Set Variable
    t1
  12. If
  13. Stop and Output
  14. If
  15. Stop and Output

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#include 'actions/music'
#define color purple
#define glyph circledQuestionMark

const CurrentPlaybackTime = getCurrentSong()
number(CurrentPlaybackTime)
@t0
/*
ENABLES SHORTCUTS TO DETERMINE WHETHER  IsSongPlayingOrPaused   1/0

APPLE SHORTCUTS HAS NO NATIVE SUPPORT TO DETERMINE WHETHER OR NOT A SONG IS CURRENTLY PLAYING. 

Tuesday May 23, 2023 WRITTEN BY [email protected]
PayPal.Me/Edmonton/10

*/
nothing()
// The above NOP + Comment increases Time Delta by 100ths of a second

const Number = 0.5
wait(Number)
const CurrentPlaybackTime1 = getCurrentSong()
@t1 = CurrentPlaybackTime1

if @t1 > @t0 {
	mustOutput("1", "1")
} else {
	mustOutput("0", "0")
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von weplaydr

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung