ShareShortcuts

Make QR Code

Scan this QR Code

mohammed
Fork “Make QR Code”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so mohammed gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
57K
Saved
0
Actions
38
Category
API
Version
1.0
Language
EN

Scan this QR Code

What's New

Version 1.0

First release

Version History
1.0 Aug 13, 2020

First release

What it does

38 actions
  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

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#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()
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by mohammed

See All

You Might Also Like

See All
Advertisement