Welcome Guest. Please Login or Register. Apr 1st, 2018, 04:07am
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. We apologize Conforums does not have any export functions to migrate data. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
Creating QR Codes
« Thread started on: Sep 13th, 2016, 7:14pm »
There's a thread over at the LB Community Forum about how to create QR Codes in Liberty BASIC. As it states, there are online sites that will generate them for you, but as user Cryptoman has pointed out there are circumstances when you may want to generate a QR Code when you don't have an internet connection.
Whatever the requirement I always prefer programming a solution in native Liberty BASIC code, but I recognise that in this case that is probably over-ambitious. However there is an alternative: there's a self-contained command-line-driven QR Code generator which can easily be called using LB's RUN statement.
The generator can be downloaded as part of the qrencode-win32 package. If you run qrcodegui_setup-3.4.4.exe one of the files it installs is qrcode.exe. In its simplest mode that can be run from the command line as follows:
Code:
qrcode -o \temp\qr.png "The quick brown fox jumps over the lazy dog"
I'm sure I don't need to explain how to call it using LB's RUN statement.
Important note: This QR Code generator is licensed under the GNU LGPL (Lesser General Public Licence).