Scanne avec ton iPhone pour installer
Yahjz
Nouveautés
Version 1.0
First release
Ce qu’il fait
62 actions-
Text
-
List
-
Choose from List
-
Set VariableencodeOrDecode
-
If
-
Text
-
List
-
Choose from List
-
Set VariablewhatEncode
-
If
-
Select File
-
Base64 Encode
-
Set Variablebase64Encoded
-
If
-
Record Audio
-
Base64 Encode
-
Set Variablebase64Encoded
-
If
-
Ask for InputEnter text
-
Base64 Encode
-
Set Variablebase64Encoded
-
Text
-
List
-
Choose from List
-
Set VariablehowSave
-
If
-
Save File
-
Show NotificationYour base64 file has been saved!
-
If
-
Copy to Clipboard
-
Show NotificationCopied to clipboard!
-
If
-
Copy to Clipboard
-
Save File
-
Show NotificationFile has been saved and have been copied to your clipboard!
-
If
-
Text
-
List
-
Choose from List
-
Set VariablewhatDecode
-
If
-
Select File
-
Set Variablefile
-
Base64 Encode
-
Set Variablebase64Decoded
-
If
-
Get Clipboard
-
Base64 Encode
-
Set Variablebase64Decoded
-
If
-
Select File
-
Set Variableaudio
-
Base64 Encode
-
Set Variablebase64Decoded
-
Text
-
List
-
Choose from List
-
If
-
Get Variable
-
Play Sound
-
Save File
-
Show NotificationDecided file has been saved!
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/sharing'
#include 'actions/media'
#include 'actions/documents'
#define color teal
#define glyph networkStorage
const Text0 = "Welcome to the Base64 Encode/Decode Machine! \n--------------------------------\nWhat would you like to do?\n----------------\nCreated by u/VanishingTacos"
const List = list("Encode", "Decode")
chooseFromList(List, Text0, false, false)
@encodeOrDecode
if @encodeOrDecode contains "Encode" {
const Text1 = "What would you like to encode?"
const List1 = list("File", "Recorded Audio", "Input Text")
chooseFromList(List1, Text1)
@whatEncode
if @whatEncode contains "File" {
const File = selectFile()
base64Encode(File)
@base64Encoded
}
if @whatEncode contains "Recorded Audio" {
const RecordedAudio = recordAudio()
base64Encode(RecordedAudio)
@base64Encoded
}
if @whatEncode contains "Input Text" {
const ProvidedInput = prompt("Enter text")
base64Encode(ProvidedInput)
@base64Encoded
}
const Text5 = "How would you like to save?"
const List2 = list("Save File", "Copy to Clipbored ", "Both")
chooseFromList(List2, Text5)
@howSave
if @howSave contains "Save File" {
const SavedFile = saveFilePrompt(@base64Encoded)
showNotification("Your base64 file has been saved!", "Base64 Encode/Decode Machine", SavedFile)
}
if @howSave contains "Copy to Clipbored " {
setClipboard(@base64Encoded)
showNotification("Copied to clipboard!", "Base64 Encode/Decode Machine")
if @howSave contains "Both" {
setClipboard(@base64Encoded)
const SavedFile1 = saveFilePrompt(@base64Encoded)
showNotification("File has been saved and have been copied to your clipboard!", "Base64 Encode/Decode Machine", SavedFile1)
}
}
} else {
const Text3 = "What would you like to decode?"
const List3 = list("File", "From Clipbored ", "Audio")
chooseFromList(List3, Text3)
@whatDecode
if @whatDecode contains "File" {
selectFile()
@file
base64Encode(@file)
@base64Decoded
}
if @whatEncode contains "From Clipbored " {
const Clipboard = getClipboard()
base64Encode(Clipboard)
@base64Decoded
}
if @whatDecode contains "Audio" {
selectFile()
@audio
base64Encode(@audio)
@base64Decoded
const List4 = list("Yes ", "No")
const ChosenItem = chooseFromList(List4)
if ChosenItem contains "Yes" {
// TODO: Get Variable not supported: Assign variable here to '@base64Decoded'.
playSound(@base64Decoded)
}
}
const SavedFile2 = saveFilePrompt(@base64Decoded)
showNotification("Decided file has been saved!", "Base64 Encode/Decode Machine", SavedFile2)
}
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é