Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

QR code generator and reader

Featured Replies

Hi,

here is a small demo file that show how to generate QR codes and even read them from a container field.

http://www.bh-a.com/index.php?option=com_content&view=article&id=88&Itemid=84&lang=en

(requires ScriptMaster :laugh: )

Brilliant stuff....

Thanks.

BUT

I transferred it to my Scriptmaster file and downloaded the latest zxing and it returns QR codes which are white on black

Any idea why??


import java.awt.image.BufferedImage

import com.google.zxing.qrcode.QRCodeWriter

import com.google.zxing.common.BitMatrix

import com.google.zxing.BarcodeFormat

import com.google.zxing.client.j2se.MatrixToImageWriter



mtx = new QRCodeWriter().encode (input, BarcodeFormat.QR_CODE, 500 , 500)

image = MatrixToImageWriter.toBufferedImage(mtx)

return image

Had to reverse the j2se method to make it work properly. Wierd


//import com.google.zxing.client.j2se.MatrixToImageWriter

 

 

int WHITE = 0xFFFFFF

writer =  new QRCodeWriter()

m = new QRCodeWriter().encode (input, BarcodeFormat.QR_CODE, w , h)

image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB)

for (x in 0..<w) {

for (y in 0..<h) {

   image.setRGB(x, y, m.get(x, y) ? WHITE : 0)

  } //end for

} //end for

  • Author

hi John

are you on MacOS Lion? I heard there are some problems there...

No, 10.6.8

It works if I fire up your file first and run the script from in there, but if I ran it at all from the SM demo file I keep it reversed and then affected your file until FM was restarted

  • 1 year later...
  • 5 months later...
  • Newbies

actually,i've just generated qr code in vb.net from ka, In the beginning,i thought it's very hard for me,but when i follow the guide and do step by step,it 's not so difficult as i thought! but as for the reader for qr code ,i've no idea about that. is there any other resources?

I have used the QRCode plugin. It requires a purchase but its simplicity has made it well worth the price. 

  • 3 months later...
  • Newbies

I have used the QRCode plugin. It requires a purchase but its simplicity has made it well worth the price. 

 

If it is just for generating QR code with simplicity and conveniences, then a free online QR code generator might be a better choice?

  • 5 months later...

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.