Barcode Generator
Barcode Generator
PureBasic Interface to OpenCV
PureBasic Interface to WinDivert
PureBasic Interface to WinRAR
PureBasic Interface to 7-Zip
PureBasic Interface to ImDisk
Windows Services & Other Stuff
Invading Space Aliens
Death Star vs Asteroids
GIF Toolkit
LSB Image Steganography
Spider Web Drawing
Deform Image: MLS
Video Snipping Tool
Chromium WebGadget
IAccessible Interface
Stitch Images: SIFT
OldSkool Fire Effect
Image Waves: LUT
YouTube Player & Downloader
MP4 Player & Downloader
Large Image Viewer
Barcode Generator
Google Translate Service
Embed JS into PureBasic
Geolocation: Google Maps
Book & Viewer & Magnify
Video for Windows: VfW
Alternate Console
Network Share Management
PureBasic Interface to WinDivert
PureBasic Interface to WinRAR
PureBasic Interface to 7-Zip
PureBasic Interface to ImDisk
Windows Services & Other Stuff
Invading Space Aliens
Death Star vs Asteroids
GIF Toolkit
LSB Image Steganography
Spider Web Drawing
Deform Image: MLS
Video Snipping Tool
Chromium WebGadget
IAccessible Interface
Stitch Images: SIFT
OldSkool Fire Effect
Image Waves: LUT
YouTube Player & Downloader
MP4 Player & Downloader
Large Image Viewer
Barcode Generator
Google Translate Service
Embed JS into PureBasic
Geolocation: Google Maps
Book & Viewer & Magnify
Video for Windows: VfW
Alternate Console
Network Share Management
Last edited by JHPJHP on Thu Jun 22, 2023 4:34 pm, edited 63 times in total.
Re: Barcode Generator
Updated:JHPJHP wrote:Either a generic message or "HTTP 400 Bad Request" error will show in the display area; I'll be replacing these with more uniform messages.
- status and error messages
- code enhancements and bug fixes
- cosmetic changes
NB*: There may be additional messages that will be added in future updates.
Re: Barcode Generator
Updated:JHPJHP wrote:With the number of available barcodes, a database of options and text samples will be added at a later date.
- added a database of barcode options and text samples to assist with applying the correct settings
- increased the Scaling option to 8
- applied the Scaling option to both Generating and Saving of barcodes
--------------------------------------------------------------
Updated:
- fixed a bug in the Barcode dropdown
- added additional message and error handling
- applied an optimization to the include file barcode.pbi
- applied some minor cosmetic changes
At one point the range for Scale X / Y was set between 1 - 20, but I recently lowered this to 1 - 8 due to Service Temporarily Unavailable messages when set to large. The error message would persist for a few minutes even at the lowest setting, but would eventually clear and accept requests again.
Re: Barcode Generator
Updated:
- added an OSX version
-- Barcode_OSX.pb, barcode_OSX.pbi
------------------------------------------------
Updated:
- fixed a bug in the OSX example
NB*: Update also includes minor changes to the Windows version.
- added an OSX version
-- Barcode_OSX.pb, barcode_OSX.pbi
------------------------------------------------
Updated:
- fixed a bug in the OSX example
NB*: Update also includes minor changes to the Windows version.
Re: Barcode Generator
#PB_MessageRequester_Warning is unknown on PB 5.42 for OSX.
If I remove that, I can run the app but I keep getting "ERROR: Service Unavailable" when I try to preview a barcode.
If I remove that, I can run the app but I keep getting "ERROR: Service Unavailable" when I try to preview a barcode.
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: Barcode Generator
Hi RSBasic,
Thank you for your comments.
-----------------------------------------------
Hi wilbert,
Thank you for testing the OSX version.
Please download the latest update to see if it solves the problem.
- you may need to remove #PB_MessageRequester_Warning
-----------------------------------------------
Updated:
- increased Scale X / Y max value to 20
- switched from HTTP/1.1 to HTTP/1.0
- moved the ButtonGadget scripts from a BindEvent to the main loop
- various other changes not worth mentioning
Scaling a barcode too large will either return a Time Out or Service Unavailable message.
NB*: Different barcodes may have a different Scale X/ Y threshold; what will work for one barcode may fail with another.
Thank you for your comments.
-----------------------------------------------
Hi wilbert,
Thank you for testing the OSX version.
Please download the latest update to see if it solves the problem.
- you may need to remove #PB_MessageRequester_Warning
-----------------------------------------------
Updated:
- increased Scale X / Y max value to 20
- switched from HTTP/1.1 to HTTP/1.0
- moved the ButtonGadget scripts from a BindEvent to the main loop
- various other changes not worth mentioning
Scaling a barcode too large will either return a Time Out or Service Unavailable message.
NB*: Different barcodes may have a different Scale X/ Y threshold; what will work for one barcode may fail with another.
Re: Barcode Generator
It's generating the barcodes nowJHPJHP wrote:Please download the latest update to see if it solves the problem.
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: Barcode Generator
Hi wilbert,
Thank you for the confirmation.
I've added a small OSX update to remove the border around the barcode (WebGadget) DropDown:
Thank you for the confirmation.
I've added a small OSX update to remove the border around the barcode (WebGadget) DropDown:
Code: Select all
CocoaMessage(0, CocoaMessage(0, GadgetID(#WebGadget1), "enclosingScrollView"), "setBorderType:", #NSNoBorder)
Re: Barcode Generator
Seems to work fineJHPJHP wrote:I've added a small OSX update to remove the border around the barcode (WebGadget) DropDown:Code: Select all
CocoaMessage(0, CocoaMessage(0, GadgetID(#WebGadget1), "enclosingScrollView"), "setBorderType:", #NSNoBorder)
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: Barcode Generator
Hi wilbert,
Thank you for testing the code.
-----------------------------------------------------------------------
Updated:
- added a Linux version to the first post (tested in Ubuntu 17.04 :: 64 bit)
- applied some minor bug fixes to all packages
NB*: If you haven't already done so, you will need to install the Linux packages located in Setup/install_files.sh.
Thank you for testing the code.
-----------------------------------------------------------------------
Updated:
- added a Linux version to the first post (tested in Ubuntu 17.04 :: 64 bit)
- applied some minor bug fixes to all packages
NB*: If you haven't already done so, you will need to install the Linux packages located in Setup/install_files.sh.
Re: Barcode Generator
Updated:
- API URL has changed
Additional information can be found here.
----------------------------------------------------------
Updated (Windows):
- image sizes configured to use the built-in PureBasic DPI compiler option
- API URL has changed
Additional information can be found here.
----------------------------------------------------------
Updated (Windows):
- image sizes configured to use the built-in PureBasic DPI compiler option
Re: Barcode Generator
Updated:
- added database script
- couple minor improvements
- fixed a few issues
Database Script
Script can be found in the database folder to download the barcode list, replacing the database file.
After some testing I noticed two barcodes that did not work; Data Matrix Rectangular Extension and Royal Mail Mailmark.
I compared the GET string from Barcode Generator with the online generator (bwip-js), and they were identical.
NB*: All three packages were updated; Windows, Linux, and OSX.
- added database script
- couple minor improvements
- fixed a few issues
Database Script
Script can be found in the database folder to download the barcode list, replacing the database file.
After some testing I noticed two barcodes that did not work; Data Matrix Rectangular Extension and Royal Mail Mailmark.
I compared the GET string from Barcode Generator with the online generator (bwip-js), and they were identical.
NB*: All three packages were updated; Windows, Linux, and OSX.