Mit dem iPhone scannen, um zu installieren
Gusses How Much Time UNTILL 100%
Neue Funktionen
Version 1.0
First release
Was er macht
45 Aktionen-
Choose from MenuCharge time
-
Choose from MenuStart
-
Get Battery Level
-
Calculate
-
Set VariableSố pin cần
-
Calculate
-
Calculate
-
Round Number
-
Set VariableThời gian còn lại
-
If
-
Calculate
-
Set VariablePhút
-
Text
-
Choose from MenuDo you want to translate?
-
Choose from MenuYes
-
Translate Text
-
Show Alert
-
Choose from MenuNo
-
Translate Text
-
Show Alert
-
If
-
If
-
Calculate
-
Set VariablePhút
-
Text
-
Choose from MenuDo you want to translate?
-
Choose from MenuYes
-
Translate Text
-
Show Alert
-
Choose from MenuNo
-
Translate Text
-
Speak Text
-
Show Alert
-
If
-
Text
-
Choose from MenuDo you want to translate?
-
Choose from MenuYes
-
Translate Text
-
Show Alert
-
Choose from MenuNo
-
Translate Text
-
Show Alert
-
Choose from Menu(will be patched because i am very lazy to do that)
-
Choose from MenuBack/Return/Exit
-
Stop This Shortcut
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#include 'actions/translation'
#include 'actions/math'
#include 'actions/device'
#define color teal
#define glyph battery
menu "Charge time" {
item "Start":
const McPin = getBatteryLevel()
@SPinCn = 100 - McPin
const RsultatDuCalcul = @SPinCn * 110
const RsultatDuCalcul1 = RsultatDuCalcul / 60
round(RsultatDuCalcul1)
@ThiGianCnLi
if @ThiGianCnLi > 120 {
@Pht = @ThiGianCnLi - 120
menu "Do you want to translate?" {
item "Yes":
translate(, Ask, "vi_VN")
confirm()
item "No":
translate(, "", "vi_VN")
confirm()
}
}
if @ThiGianCnLi > 60 {
if @ThiGianCnLi <= 120 {
@Pht = @ThiGianCnLi - 60
menu "Do you want to translate?" {
item "Yes":
translate(, Ask, "vi_VN")
confirm()
item "No":
translate(, "", "vi_VN")
speak()
confirm()
}
}
} else {
menu "Do you want to translate?" {
item "Yes":
translate(, Ask, "vi_VN")
confirm()
item "No":
translate(, "", "vi_VN")
confirm()
}
}
item " (will be patched because i am very lazy to do that)":
item "Back/Return/Exit":
stop()
}
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 whyyouneed
Das gefällt dir vielleicht auch
Werbung