Different kinds of QR codes?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 346
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK
Contact:

Different kinds of QR codes?

Post by thatkeith » Wed Jun 23, 2021 4:45 pm

The qrCreate command is very cool and it's easy to use for straightforward stuff such as URLs and plain text. I've been looking around to find out more about what I could theoretically do with this, and there's an interesting list with code generator here: https://qrcode.tec-it.com/en/Sms

The options the site lists are:
  • Raw data (plain text)
  • URL
  • Phone number
  • SMS
  • Twitter (link to a Twitter profile)
  • Tweet
  • Wi-fi
  • Email
  • Event
  • vCard
  • MeCard
  • SEPA (bank transfer)
Some of these seem pretty simple, but some are multiple-part things (for example SMS is number plus message, and Event is even more fragmented).
On top of this I'm not sure how to produce codes that directly launch the right service. It *seems* to be more than just including the right protocol (tel:, mailto:, etc.) but I am rather in the dark here.

Two questions:
  • Does this require a more complex form of QR code creation than qrCreate provides?
  • If not, does anyone have more info on how I can learn about how to tame these things?
k
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist

thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 346
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK
Contact:

Re: Different kinds of QR codes?

Post by thatkeith » Wed Jun 23, 2021 5:07 pm

I found a bit more – thank you Wikipedia! (https://en.wikipedia.org/wiki/QR_code#J ... Fi_network)

"By specifying the SSID, encryption type, password/passphrase, and if the SSID is hidden or not, mobile device users can quickly scan and join networks without having to manually enter the data.[46] A MECARD-like format is supported by Android and iOS 11+."

Common format:

Code: Select all

WIFI:S:<SSID>;T:<WEP|WPA|blank>;P:<PASSWORD>;H:<true|false|blank>;
Sample:

Code: Select all

WIFI:S:MySSID;T:WPA;P:MyPassW0rd;;
This sorta answers one of my questions but it leaves me wondering where a definitive list of the right formatting codes might be... :o
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist

thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 346
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK
Contact:

Re: Different kinds of QR codes?

Post by thatkeith » Wed Jun 23, 2021 8:28 pm

Aha!

This site: https://zxing.org/w/decode will show the raw text encoded into a QR code (and also the raw bytes, barcode format type, parsed result type and the parsed data itself). I've created a set of QR codes for different things using the previous site I mentioned and used this site to reveal the raw data structure for each one. I'm getting somewhere! :)
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist

trevix
Posts: 958
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Different kinds of QR codes?

Post by trevix » Tue Nov 07, 2023 6:47 pm

What about having a QRcode that, shot from the mobile camera, launches a standalone and pass it some parameters (to do things)?
Can it be done?
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

matthiasr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 190
Joined: Sat Apr 08, 2006 7:55 am
Location: Lübbecke, Germany
Contact:

Re: Different kinds of QR codes?

Post by matthiasr » Tue Nov 07, 2023 10:13 pm

Both the iOS and Android standalones settings in LC support the custom URL scheme.
If you define a string in that field, let's say trevix then the mobile app will be opened as soon as you launch an url like this

trevix://.......whateveryouplace here.

If you scan a qrcode that contains the custom url as text, the scanning app will show a popup and ask if you want to open/launch that link.

When the custom url is launched a urlWakeUp message with a parameter that contains the custom url is sent to the app and in case the app is not running it will be opened.

Post Reply

Return to “Talking LiveCode”