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
Page 1 of 1
Advanced! create a comunication interface with a fiscal cash register
#2
Posted 07 November 2009 - 05:34 PM
You have to use DLLOpen and DLLCall.
one func:
one func:
[ autoIt ] ( Popup )
$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
Page 1 of 1

Sign In
Register
Help
MultiQuote