Jump to content
Sign in to follow this  

Advanced! create a comunication interface

Recommended Posts


PLS I need help. I want to create a comunication interface with a cash register

the download is HERE

It is a Windows Printing SDK

Windows library allowing easy printing on all Datecs ESC/POS printers

I supose I must create an object, and get stats from it and do some operartions on it

But I need an example to start

I supose it is something like that

$IE = ObjCreate("Shell.Explorer.2")



this is just an example to work with objects

PLS all.... take a look at the documentation from the link an give me a start


I like IT: php, mysql, codeingiter, css, jquery and AUTOIT

Share this post

Link to post
Share on other sites

You have to use DLLOpen and DLLCall.

one func:

$PrintingDll = DllOpen('printing.dll')
Global Const $ERR_OK        =   0
Global Const $ERR_TIMEOUT   =   -1
Global Const $ERR_UNSUPPORTED = -2
; Params. $sText - see documentation
; return : success: true
;          error:   false
;                   @error set to: 1(dllcall error)
;                                 -1 (Timeout)
Func _PrnText($sText)
    ;Author: Prog@ndy
    Local $aResult = DllCall($PrintingDll, 'int', 'PrnText', 'str', $sText)
    If @error Then Return SetError(1,0,0)
    Return SetError($aResult[0], 0, $aResult[0]=0)

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.