If you don’t know what the codes are check the command I’ll have all the codes there and if you don’t know what it does it’s basically let you turn off and turn on Pacific stuff
Что нового
Версия 1.0
First release
Что делает
Действий: 21-
Ask for InputEnter code
-
If
-
Set Airplane Mode
-
If
-
Set Bluetooth
-
If
-
Set Wi-Fi
-
If
-
Set Silent Modecom.apple.ShortcutsActions
-
If
-
Set Low Power Mode
-
If
-
Show Control Centercom.apple.ShortcutsActions
-
If
-
Set AirDrop
-
If
-
Lock Screen
-
If
-
Set Appearance
-
If
-
Set Orientation Lock
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#define mac false
#include 'actions/device'
#define color violet
const ProvidedInput = prompt("Enter code", "Number")
if ProvidedInput == 1234 {
setAirplaneMode(false)
}
if ProvidedInput == 1111 {
setBluetooth(false)
}
if ProvidedInput == 2222 {
setWifi(false)
}
if ProvidedInput == 3333 {
rawAction("com.apple.ShortcutsActions.SetSilentModeAction", {
"AppIntentDescriptor": "",
"operation": "toggle"
})
}
if ProvidedInput == 4444 {
setLowPowerMode(false)
}
if ProvidedInput == 5555 {
showControlCenter()
}
if ProvidedInput == 6666 {
setAirdropReceiving("Off")
}
if ProvidedInput == 7777 {
lockScreen()
}
if ProvidedInput == 8888 {
darkMode()
}
if ProvidedInput == 9999 {
setOrientationLock(false)
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Вам также может понравиться
Реклама