Nr31s Posted April 14, 2008 Share Posted April 14, 2008 Hi, Someone can give me a hand to help to create a free tool for convert, display, print, preview and generate barcodes???? Well i have made already some hints to get my own generator number, but the problem is to convert the decimal number to ean13... Thanks for all the help. Link to comment Share on other sites More sharing options...
Nr31s Posted April 14, 2008 Author Share Posted April 14, 2008 Hi, Someone can give me a hand to help to create a free tool for convert, display, print, preview and generate barcodes????Well i have made already some hints to get my own generator number, but the problem is to convert the decimal number to ean13...Thanks for all the help.CODE#include <GUIConstants.au3>Dim $PS, $szDrive, $szDir, $szFName, $szExtConst $File = FileOpen(@ScriptDir & "\Barcode.ps", 2)Dim $out = -1Const $i = _GenerateSerialNumber()Opt("GUIOnEventMode", 1)#Region ### START Koda GUI section ### Form=$Form1 = GUICreate("Form1", 178, 96, 318, 100)GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1Minimize")GUISetOnEvent($GUI_EVENT_RESTORE, "Form1Restore")$cmdgen = GUICtrlCreateButton("Generate", 16, 48, 121, 17, 0)GUICtrlSetOnEvent(-1, "cmdgenClick")$cmdprint = GUICtrlCreateButton("Print", 16, 68, 121, 17, 0)$lbl = GUICtrlCreateLabel("", 24, 24, 150, 20)GUISetState(@SW_SHOW)#EndRegion ### END Koda GUI section ###While 1Sleep(100)WEndFunc _GenerateSerialNumber() $out = $out + 1 $SerialNumber = "1" & StringMid(@YEAR & @MON & @MDAY, 3) & $out If $out > 9 Then ;GUICtrlSetState($cmdgen,$GUI_DISABLE) $out = -1 EndIf Return $SerialNumberEndFuncFunc cmdgenClick() GUICtrlSetData($lbl,"") GUICtrlSetData($lbl,_GenerateSerialNumber())EndFuncFunc cmdprintClick() ; LONG CODE EndFuncFunc Form1Close()ExitEndFunc Link to comment Share on other sites More sharing options...
martin Posted April 14, 2008 Share Posted April 14, 2008 Hi, Someone can give me a hand to help to create a free tool for convert, display, print, preview and generate barcodes????Well i have made already some hints to get my own generator number, but the problem is to convert the decimal number to ean13...Thanks for all the help.Don't know anything about barcodes, but the printing part sounds like a suitable job for my print udf, (see my signature) though it also needs my dll so it isn't pure AutpIt. Previewing in AutoIt would be quite easy using GUICtrlSetGraphic.Converting the number to ean13 looks like just a question of following the spec. (I'm not volunteering though.) Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
harkgreen Posted January 30, 2013 Share Posted January 30, 2013 well, EAN13 is a numeric-only barcode, so I think maybe you should read this (http://www.barcodeisland.com/ean13.phtml ) before you convert the decimal number to ean13 barcodes. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 30, 2013 Moderators Share Posted January 30, 2013 harkgreen,Did you realise that the post above yours dates back nearly 5 years? We discourage necro-posting that far back as the language has changed so much since then that the code is very unlikely to be runnable and/or the problem has been solved in another more recent thread. Please take a moment to check the date when you post again. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now