Mit dem iPhone scannen, um zu installieren
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.
Was er macht
15 Aktionen-
Get Current Song
-
Number
-
Set Variablet0
-
CommentENABLES 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
-
CommentThe above NOP + Comment increases Time Delta by 100ths of a second
-
Number
-
Wait
-
Get Current Song
-
Number
-
Set Variablet1
-
If
-
Stop and Output
-
If
-
Stop and Output
Als Code ansehen
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
Das gefällt dir vielleicht auch
Werbung