ShareShortcuts
„Music Player“ 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 celebrity 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
5K
Gesichert
1
Aktionen
22
Kategorie
Music
Version
2.0
Sprache
EN

The Music Player is a shortcut that can Play/Pause any running songs on “iPhone”, for the full effects of this shortcut assign it to “AssistiveTouch” by going into the “Settings” App and tapping “Accessibility”, then “Touch”, then “AssistiveTouch” and then scroll down to double touch and turn “AssistiveTouch” On.

Neue Funktionen

Version 2.0

Just additional actions, also don’t forget to change the name of the focus in the “If name” statement

Versionsverlauf
2.0 6. Jul 2026

Just additional actions, also don’t forget to change the name of the focus in the “If name” statement

1.0 21. Mai 2026

First release

Was er macht

22 Aktionen
  1. Get Current Focus
  2. Get Name
  3. If
  4. Play/Pause
  5. If
  6. If
  7. Play/Pause
  8. Go to Home Screen
  9. Lock Screen
  10. Set Volume
  11. If
  12. Play/Pause
  13. If
  14. Text
  15. Set Variable
    MusicPlayer
  16. Get Value
    dk.simonbs.DataJar
  17. Calculate
  18. Set Value
    dk.simonbs.DataJar
  19. If
  20. Text
  21. Set Value
    dk.simonbs.DataJar
  22. Run Shortcut
    Minutes in a song

Als Code ansehen
Beta

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

#define mac false
#include 'actions/settings'
#define color red
#define glyph livePlay

const CurrentFocus = getFocusMode()
const Name = getName(CurrentFocus)

if Name == "Ultra Low Power Mode " {
	play()
} else {
	if Name == "Lockdown 🔒" {
		play()
		returnToHomescreen()
		lockScreen()
		setVolume(0)
	} else {
		togglePlayPause()
		if Name == "Airpods" {
			@MusicPlayer = "0"
			rawAction("dk.simonbs.DataJar.GetValueIntent", {
				"keyPath": "MusicPlayer"
			})
			const CalculationResult = Value + 1
			rawAction("dk.simonbs.DataJar.SetValueIntent", {
				"keyPath": "MusicPlayer",
				"values": "CalculationResult"
			})
			if CalculationResult >= 5 {
				const Text = "0"
				rawAction("dk.simonbs.DataJar.SetValueIntent", {
					"keyPath": "MusicPlayer",
					"values": "Text"
				})
				run("Minutes in a song", Text)
			}
		}
	}
}
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 celebrity

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung