Command line

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
labrint
Posts: 379
Joined: 14 Jun 2017, 05:06
Location: Malta

Command line

15 Apr 2021, 05:44

https://github.com/revilo/barcode_gen

Does anyone know how to connect this barcode generation program to AHK via command line?
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Command line

15 Apr 2021, 06:26

Code: Select all

F12::Run % "barcode_gen.exe -h“ ; press F12. https://github.com/revilo/barcode_gen/releases/download/v1.0-beta/barcode_gen.exe
User avatar
labrint
Posts: 379
Joined: 14 Jun 2017, 05:06
Location: Malta

Re: Command line

15 Apr 2021, 09:49

BoBo wrote:
15 Apr 2021, 06:26

Code: Select all

F12::Run % "barcode_gen.exe -h“ ; press F12. https://github.com/revilo/barcode_gen/releases/download/v1.0-beta/barcode_gen.exe
Barcode := 1234567891234

Run % A_ScriptDir "\barcode_gen.exe " Barcode " --file Barcode.png"


Tested it, it worked, but barcode is unreadable!!!!
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Command line

15 Apr 2021, 09:54

... but barcode is unreadable!!!!
Probably the reason why the app's download location contains a string named 'beta', and yes, there's still that PEBCAK option as well!? :think: :mrgreen:
mshafer1
Posts: 54
Joined: 16 Jul 2017, 14:49
Contact:

Re: Command line

15 Apr 2021, 10:31

If the problem is with the py library, I'ld suggest trying python-barcode: https://pypi.org/project/python-barcode/
I've successfully used to to generate Code 13 and Code 128 barcodes
User avatar
labrint
Posts: 379
Joined: 14 Jun 2017, 05:06
Location: Malta

Re: Command line

16 Apr 2021, 04:56

mshafer1 wrote:
15 Apr 2021, 10:31
If the problem is with the py library, I'ld suggest trying python-barcode: https://pypi.org/project/python-barcode/
I've successfully used to to generate Code 13 and Code 128 barcodes

Code: Select all

Barcode := 1234567891234

RunWait % A_ScriptDir "\zint.exe --height=30 --barcode=20 --notext --output=Barcode" BarcodePrintNumber ".png -d " Barcode ""
Using Zint.exe http://zint.org.uk/Default.aspx

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 217 guests