ShareShortcuts

IsSongPlayingOrPaused

weplaydr
Bifurcar “IsSongPlayingOrPaused”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que weplaydr reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
32K
Guardado
1
Acciones
15
Categoría
Music
Versión
1.1
Idioma
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.

Novedades

Versión 1.1

An extraneous nop action deleted from script.

Historial de versiones
1.1 23 de may. de 2023

An extraneous nop action deleted from script.

1.0 23 de may. de 2023

First release

Qué hace

15 acciones
  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

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#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")
}
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de weplaydr

Ver todo

También te puede gustar

Ver todo
Publicidad