Отсканируй на iPhone, чтобы установить
Type to Siri is a shortcut that lets you type to Siri!
Что нового
Версия 1.0
First release
Что делает
Действий: 44-
CommentMade by CoolM
-
Get Current Weather
-
Text
-
Set VariableName
-
Text
-
Set VariableLocation
-
Ask for Input
-
If
-
Send Message
-
Stop This Shortcut
-
If
-
If
-
Play/Pause
-
Stop This Shortcut
-
If
-
If
-
Play/Pause
-
Stop This Shortcut
-
If
-
If
-
Choose from MenuForward or backwards
-
Choose from MenuForward
-
Skip Forward
-
Choose from MenuBackwards
-
Skip Back
-
If
-
If
-
Call
-
If
-
If
-
Search Web
-
If
-
If
-
Get Current Location
-
Show Alert
-
Stop This Shortcut
-
If
-
Change Case
-
Text
-
Get Dictionary Value
-
Speak Text
-
Show Result
-
Run ShortcutType to Siri
-
CommentMade by CoolM
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/web'
#include 'actions/sharing'
#include 'actions/location'
#define color pink
#define glyph doubleQuote
// Made by CoolM
getCurrentWeather()
@Name = ""
@Location = ""
const AskForInput = prompt("")
if AskForInput == "Send a message" || AskForInput == "Send text message" {
sendMessage(Ask, Ask)
stop()
} else {
if AskForInput == "Pause" || AskForInput == "Pause current music" || AskForInput == "Stop playing music" {
play()
stop()
} else {
if AskForInput == "Play" || AskForInput == "Play current music" || AskForInput == "Play the music" {
play()
stop()
} else {
if AskForInput == "Skip" || AskForInput == "Skip current music" || AskForInput == "Skip the music" {
menu "Forward or backwards" {
item "Forward":
skipFwd()
item "Backwards":
skipBack()
}
} else {
if AskForInput == "Call" {
call(Ask)
} else {
if AskForInput == "Search the web" || AskForInput == "Search" || AskForInput == "Search the internet" {
searchWeb("", Ask)
} else {
if AskForInput == "Show my current location" || AskForInput == "Current location" || AskForInput == "Show my location" {
getCurrentLocation()
confirm()
stop()
} else {
}
}
}
}
}
}
}
uppercase(AskForInput)
const Text = "{\n\\"hi\\": \\"Hello {@Name}. How can I help?\\",\n\n\\"hello\\": \\"Hello {@Name}. How can I help?\\",\n\n\\"what is the weather today\\": \\"{}\\",\n\n\\"what’s the weather for today\\": \\" {}\\",\n\n\\"what’s the weather\\": \\"{}\\",\n\n\\"what’s the weather in {@Location}\\": \\"{}\\",\n\n\\"alexa\\": \\"Not exactly. My name is Siri\\",\n\n\\"i prefer samsung over apple\\": \\"Im probably won't respond to that question\\",\n\n\\"oh no\\": \\"What happened?\\",\n\n\\"{}\\": \\"Sorry, something went wrong Please try again!\\",\n}"
const DictionaryValue = getValue(Text)
speak(DictionaryValue, false, "en-US")
show("{DictionaryValue}\n\n\n")
runSelf(DictionaryValue)
// Made by CoolM
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от coolm
Вам также может понравиться
Реклама