This gets your location and current weather conditions around you and sends them to the person that you choose to send it too.
Neue Funktionen
Version 1.4
Changed comment
Was er macht
18 Aktionen-
Set VariableMessage
-
Get Current Location
-
Set VariableCurrentLocation
-
Get Current Weather
-
Set VariableCurrentWeather
-
Ask for InputDo you want to add a personal message?
-
If
-
Dictate Text
-
Set VariablePersonalText
-
If
-
Text
-
Add to Variable
-
If
-
Text
-
Add to Variable
-
CommentAdd the person that you want the text to go too.
-
Send Message
-
Show NotificationDone!
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#include 'actions/text'
#include 'actions/location'
#define color red
#define glyph personRunning
@Message = nil
getCurrentLocation()
@CurrentLocation
getCurrentWeather()
@CurrentWeather
const ProvidedInput = prompt("Do you want to add a personal message?")
if ProvidedInput contains "Yes" {
listen()
@PersonalText
}
if !@PersonalText {
@Message += "--Pre made--\nI need help! This is my current location: {@CurrentLocation}\n\nAnd the weather is: {@CurrentWeather}"
} else {
@Message += "--Pre made--\nI need help! This is my current location: {@CurrentLocation}\n\nAnd the weather is: {@CurrentWeather}\n--Personal message-- \n{@PersonalText}"
}
// Add the person that you want the text to go too.
sendMessage(nil, @Message, false)
showNotification("Done!", "From shortcuts app", false)
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 shortgram
Das gefällt dir vielleicht auch
Werbung