Jump to content

Recommended Posts

Posted

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")

$IE.navigate("www.google.com")

etc

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

thx

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

Posted

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)
EndFunc

*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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...