ShareShortcuts

Make QR Code

Scan this QR Code

mohammed
Создать форк «Make QR Code»

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

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

Scan this QR Code

Что нового

Версия 1.0

First release

История версий
1.0 13 авг 2020 г.

First release

Что делает

Действий: 38
  1. Comment
    When ‘Choose from Menu’ runs, an option must be chosen, and only the actions inside the chosen option will run.
  2. Choose from Menu
    What should your QR code do?
  3. Choose from Menu
    Open Website
  4. Ask for Input
    What website should this QR Code open?
  5. Choose from Menu
    Send Message
  6. Select Phone Number
  7. Comment
    This action shows a picker for your contacts with have phone numbers.
  8. Replace Text
  9. Ask for Input
    What should the message say?
  10. Text
  11. Comment
    The above text action is used to create your QR code. ⚠️ Changing it might break your QR code.
  12. Choose from Menu
    Send Email
  13. Select Email Address
  14. Comment
    This action shows a picker for your contacts with email addresses.
  15. Ask for Input
    What’s the email subject?
  16. Ask for Input
    What should the email say?
  17. Text
  18. Comment
    The above text action is used to create your QR code. ⚠️ Changing it might break your QR code.
  19. Choose from Menu
    Add Contact
  20. Select Contacts
  21. Set Name
  22. Choose from Menu
    Add Event
  23. Ask for Input
    What is the event called?
  24. Ask for Input
    When does the event start?
  25. Ask for Input
    When does the event end?
  26. Format Date
  27. Format Date
  28. Text
  29. Comment
    The above text action is used to create your QR code. ⚠️ Changing it might break your QR code.
  30. Choose from Menu
    Set up Wi-Fi
  31. Get Network Details
  32. Ask for Input
    What is your Wi-Fi name?
  33. Ask for Input
    What is the password for …?
  34. Text
  35. Comment
    The above text action is used to create your QR code. ⚠️ Changing it might break your QR code.
  36. Generate QR Code
  37. Set Name
  38. Show Result

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/text'
#include 'actions/contacts'
#define color darkgray
#define glyph QRCode

// When ‘Choose from Menu’ runs, an option must be chosen, and only the actions inside the chosen option will run.


menu "What should your QR code do?" {
item "Open Website":
	prompt("What website should this QR Code open?", "URL")
item "Send Message":
	selectPhoneNumber()
	// This action shows a picker for your contacts with have phone numbers.

	const StrippedPhoneNumber = replaceText("[^0-9]", "", true)
	prompt("What should the message say?")
	/*
	The above text action is used to create your QR code.
	
	⚠️ Changing it might break your QR code.
	*/
item "Send Email":
	selectEmailAddress()
	// This action shows a picker for your contacts with email addresses.

	const ProvidedSubtitle = prompt("What’s the email subject?")
	const ProvidedBody = prompt("What should the email say?")
	/*
	The above text action is used to create your QR code.
	
	⚠️ Changing it might break your QR code.
	*/
item "Add Contact":
	const Contacts = selectContact()
	setName(Contacts, "VCard.txt")
item "Add Event":
	const EventName = prompt("What is the event called?")
	const StartDate = prompt("When does the event start?", "Date")
	const EventEnd = prompt("When does the event end?", "Date")
	const FormattedStart = formatDate(StartDate, "Custom", "yyyyMMdd")
	const FormattedEnd = formatDate(EventEnd, "Custom", "yyyyMMdd")
	/*
	The above text action is used to create your QR code.
	
	⚠️ Changing it might break your QR code.
	*/
item "Set up Wi-Fi":
	const WifiName = getWifiDetail("Network Name")
	const SSID = prompt("What is your Wi-Fi name?")
	const Password = prompt("What is the password for {SSID}?")
	/*
	The above text action is used to create your QR code.
	
	⚠️ Changing it might break your QR code.
	*/
}
const QRCode = makeQRCode(, "High", [{float 0} {float 0} {float 0} {float 1}], [{float 2} {float 2} {float 2} {float 1}])
setName(QRCode)
show()
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от mohammed

См. все

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

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