Scanne avec ton iPhone pour installer
First shortcut of 배터리 상태 series.
Nouveautés
Version 1.0
First release
Ce qu’il fait
46 actions-
Get Device Details
-
Text
-
Find Notes
-
Get Text from Input
-
Split Text
-
Count
-
Get Item from List
-
If
-
Get Battery Level
-
If
-
Nothing
-
If
-
Text
-
Find Notes
-
Get Text from Input
-
Split Text
-
Set Variable메모
-
Count
-
Calculate Expression
-
Repeat
-
Calculate Expression
-
Get Item from List
-
Add to Variable
-
Calculate Statistics
-
Round Number
-
Get Battery Level
-
If
-
Text
-
Date
-
Append to Note
-
Get Battery Level
-
Get Text from Input
-
Append to Note
-
Text
-
Append to Note
-
Calculate Expression
-
Round Number
-
Date
-
Adjust Date
-
Format Date
-
Text
-
Show Notification…
-
If
-
Nothing
-
If
-
Nothing
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#include 'actions/device'
#define color blue
#define glyph battery
getDeviceDetail("Device Model")
rawAction("is.workflow.actions.filter.notes", {
"AppIntentDescriptor": "",
"WFContentItemFilter": ""
})
const 1 = getText()
const 2 = splitText(1)
const 3 = count(2)
const 4 = getListItem(2, 3)
if 4 == "충전 종료됨" {
const 5 = getBatteryLevel()
if 5 == 100 {
} else {
rawAction("is.workflow.actions.filter.notes", {
"AppIntentDescriptor": "",
"WFContentItemFilter": ""
})
const 7 = getText(6)
splitText(7)
@
count(@)
const 8 = (-1)/3
repeat _ for 8 {
const 9 = 3*@RepeatIndex+1
getListItem(@, 9)
@
}
const 10 = statistic("", nil)
round(10)
const 11 = getBatteryLevel()
if 11 == {
const 12 = "배터리 사용 ({})"
currentDate()
appendNote(12)
const 13 = getBatteryLevel()
getText(13)
appendNote(12)
appendNote(12)
const 14 = ((100-5)/100)*
round(14)
currentDate()
adjustDate(, "")
formatDate(, "None", "HH시 MM분")
showNotification()
} else {
}
}
} else {
}
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de guinea
Ça pourrait aussi te plaire
Publicité