I started to try it.
It's very cool !
As usual, we can regret a lack of "documentation materials" (just the dictionary actually), but very, very interesting. And it works well.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller
Code: Select all
on barcodeDetected pBC,pID
put pBC["value format"]&cr&pBC["raw value"]&cr&pBC["display value"] into tResult
answer tResult
end barcodeDetected
Well... for that matter, I still haven't figured out what is exactly... the "snapshot mode".
I'm still doing tests (but it's boring : change something in the IDE, compile, copy .apk on the phone, uninstall previous version, install new one, etc.)
For a full list of entries use Bernd's tinydict:Set the snapshotMode to specify if and when a snapshot of a barcode should be
returned. If set to "off", barcode snapshots will never be taken. If set to
"detected", a snapshot will be taken each time a barcode is detected and sent as
part of the barcode array with the barcodeDetected message. If set to
"clicked", a snapshot will be taken each time a barcode is clicked and sent as
part of the barcode array with the barcodeClicked message.
Defaults to "off".
Code: Select all
function cacheLocation
local tCacheFolder
switch the platform
case "Win32"
put specialFolderPath("support") into tCacheFolder # AppData/Roaming
set the itemDelimiter to "/"
put "/local/RunRev/Documentation Cache/" into item -1 of tCacheFolder
break
case "MacOS"
put specialFolderPath("home") & "/Library/Application Support/RunRev/Documentation Cache/" into tCacheFolder
break
default
case "linux"
put specialFolderPath("home") & "/.runrev/documentationcache/" into tCacheFolder
break
end switch
return tCacheFolder
end cacheLocation