Skip as many times as you desire, download this shortcut to have access to the limitless skips in the “Skip [Updated]” shortcut
Что нового
Версия 1.0
First release
Что делает
Действий: 21-
Choose from MenuWould you like to skip ahead or cancel any current running skips?
-
Choose from MenuSkip Ahead ⏩
-
Get Current Song
-
If
-
Ask for InputHow many times do you want to skip ahead?
-
Repeat
-
Skip Forward
-
Wait
-
Choose from MenuCancel Running Skips ❌
-
Stop This Shortcut
-
Choose from MenuSkip Backwards ⏪
-
Get Current Focus
-
Get Name
-
If
-
Ask for InputHow many times do you want to skip backwards?
-
Repeat
-
Skip Back
-
Wait
-
If
-
Show AlertLocked in not active
-
Run ShortcutLimitless Skips
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/settings'
#include 'actions/music'
#define color blue
#define glyph aperture
menu "Would you like to skip ahead or cancel any current running skips?" {
item "Skip Ahead ⏩":
const CurrentSong = getCurrentSong()
if CurrentSong {
const ProvidedInput = prompt("How many times do you want to skip ahead?", "Number")
repeat _ for ProvidedInput {
skipFwd()
wait(2)
}
}
item "Cancel Running Skips ❌":
stop()
item "Skip Backwards ⏪":
const CurrentFocus = getFocusMode()
const Name = getName(CurrentFocus)
if Name == "Locked in" {
const ProvidedInput1 = prompt("How many times do you want to skip backwards?", "Number")
repeat _ for ProvidedInput1 {
skipBack()
wait(2)
}
} else {
alert("The Locked in Focus is required to be active to continue.", "Locked in not active")
runSelf()
}
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от celebrity
Вам также может понравиться
Реклама