ShareShortcuts

Type to Siri

Type to Siri is a shortcut that lets you type to Siri!

coolm
Создать форк «Type to Siri»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы coolm получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
21K
Сохранено
0
Действия
44
Категория
Utilities
Версия
1.0
Язык
EN

Type to Siri is a shortcut that lets you type to Siri!

Что нового

Версия 1.0

First release

История версий
1.0 18 сен 2024 г.

First release

Что делает

Действий: 44
  1. Comment
    Made by CoolM
  2. Get Current Weather
  3. Text
  4. Set Variable
    Name
  5. Text
  6. Set Variable
    Location
  7. Ask for Input
  8. If
  9. Send Message
  10. Stop This Shortcut
  11. If
  12. If
  13. Play/Pause
  14. Stop This Shortcut
  15. If
  16. If
  17. Play/Pause
  18. Stop This Shortcut
  19. If
  20. If
  21. Choose from Menu
    Forward or backwards
  22. Choose from Menu
    Forward
  23. Skip Forward
  24. Choose from Menu
    Backwards
  25. Skip Back
  26. If
  27. If
  28. Call
  29. If
  30. If
  31. Search Web
  32. If
  33. If
  34. Get Current Location
  35. Show Alert
  36. Stop This Shortcut
  37. If
  38. Change Case
  39. Text
  40. Get Dictionary Value
  41. Speak Text
  42. Show Result
  43. Run Shortcut
    Type to Siri
  44. Comment
    Made 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

См. все

Вам также может понравиться

См. все
Реклама