Scanne avec ton iPhone pour installer
Requires Scriptable My Scriptable File: https://drive.google.com/file/d/1ziv970vtNsvPluD8zguX1IY-3-V_WqgF/view?usp=drivesdk
Nouveautés
Version 1.0
First release
Ce qu’il fait
21 actions-
Get Battery Level
-
If
-
Show AlertError
-
Stop This Shortcut
-
If
-
Getcurrentapp
-
Text
-
Text
-
If
-
Set Low Power Mode
-
File
-
Get Text from Input
-
Open App
-
If
-
If
-
File
-
Get Text from Input
-
Open App
-
If
-
Save File
-
Parameterized Run Scriptdk.simonbs.Scriptable
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.
#define mac false
#include 'actions/device'
#define color red
const BatteryState = getBatteryLevel()
if BatteryState != 1 {
alert("Device is not at 1%", "Error")
stop()
} else {
}
rawAction("is.workflow.actions.getcurrentapp", {
"WFVisibleAppScope": "Current"
})
const Text3 = "{}"
const Text = "{ShortcutInput}"
if Text == "1" {
setLowPowerMode(false)
const File = file()
const Text1 = getText(File)
openApp()
} else {
if Text == "2" {
const File1 = file()
const Text2 = getText(File1)
openApp()
} else {
saveFile("/1% Battery Remaining Alert/Current App Data.txt", Text3, true)
rawAction("dk.simonbs.Scriptable.ParameterizedRunScriptIntent", {
"ShowWhenRun": false,
"fileName": "1% Battery Remaining Alert",
"parameter": [],
"runInApp": true,
"texts": []
})
}
}
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 coltensus
Ça pourrait aussi te plaire
Publicité