ShadowElf Posted November 7, 2009 Posted November 7, 2009 PLS I need help. I want to create a comunication interface with a cash registerthe download is HEREIt is a Windows Printing SDKWindows library allowing easy printing on all Datecs ESC/POS printersI supose I must create an object, and get stats from it and do some operartions on itBut I need an example to startI supose it is something like that$IE = ObjCreate("Shell.Explorer.2")$IE.navigate("www.google.com")etcthis is just an example to work with objectsPLS all.... take a look at the documentation from the link an give me a startthx I like IT: php, mysql, codeingiter, css, jquery and AUTOIT
ProgAndy Posted November 7, 2009 Posted November 7, 2009 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
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