Mit dem iPhone scannen, um zu installieren
Vorschau
A virtual clipboard, as said in the title. You can save text or your clipboard to this shortcut and it will save, almost like you have two clipboards! More in the tutorial. This is a BETA version, it will be updated. Currently v1.1. Read my comment below if you don’t understand.
Neue Funktionen
Version 1.0
First release
Was er macht
40 Aktionen-
Number
-
Get File
-
Count
-
If
-
Show Alert
-
Text
-
Save File
-
If
-
Text
-
Set VariableVirCli
-
Choose from MenuDo you want to save your clipboard, save custom text or not save at all?
-
Choose from MenuSave clipboard
-
Save File
-
Choose from MenuSave custom text
-
Ask for InputWhat do you want to save?
-
Save File
-
Choose from MenuDon’t save
-
Nothing
-
Count
-
If
-
Choose from MenuThe text saved earlier is too long to be displayed here. You can view it in a .txt file, copy it, or just exit the shortcut.
-
Choose from MenuCopy
-
Copy to Clipboard
-
Choose from MenuView
-
Quick Look
-
Show Alert
-
Copy to Clipboard
-
Choose from MenuExit
-
Stop This Shortcut
-
If
-
Choose from MenuThe text you saved earlier is "…". You can copy this text, view it in a .txt file, or exit the shortcut.
-
Choose from MenuCopy
-
Copy to Clipboard
-
Quick Look
-
Choose from MenuView
-
Show Alert
-
Copy to Clipboard
-
Choose from MenuExit
-
Stop This Shortcut
-
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/sharing'
#include 'actions/documents'
#define color purple
#define glyph walletPass
const MaximumCharacters = 30
const File = getFileFromFolder(, "VirtualClipboard.txt", false)
const Count = count(File)
if Count == 0 {
alert("Hi, I see you're new to this shortcut (or deleted the data.) It simply gets your clipboard, and then it saves that text so that you can almost have two clipboards! \nThis is BETA, it will be updated. Currently v1.1. 📋", "")
const Text = "Text"
saveFile("VirtualClipboard.txt", Text, true)
} else {
@VirCli = "{File}"
menu "Do you want to save your clipboard, save custom text or not save at all? " {
item "Save clipboard":
saveFile("VirtualClipboard.txt", true)
item "Save custom text":
const ProvidedInput = prompt("What do you want to save?")
saveFile("VirtualClipboard.txt", ProvidedInput, true)
item "Don’t save":
}
const Count1 = count(@VirCli, "Characters")
if Count1 >= MaximumCharacters {
menu "The text saved earlier is too long to be displayed here. You can view it in a .txt file, copy it, or just exit the shortcut." {
item "Copy":
setClipboard(@VirCli)
item "View":
quicklook(@VirCli)
confirm("Copy?")
setClipboard(@VirCli)
item "Exit":
stop()
}
} else {
menu "The text you saved earlier is \"{@VirCli}\". You can copy this text, view it in a .txt file, or exit the shortcut." {
item "Copy":
setClipboard(@VirCli)
quicklook(@VirCli)
item "View":
confirm("Copy?")
setClipboard(@VirCli)
item "Exit":
stop()
}
}
}
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 daboy
Das gefällt dir vielleicht auch
Werbung