AutoIt Forums: Advanced! create a comunication interface - AutoIt Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Advanced! create a comunication interface with a fiscal cash register

#1 User is offline   ShadowElf 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 30
  • Joined: 27-October 09

Posted 07 November 2009 - 05:20 PM

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
0

#2 User is offline   ProgAndy 

  • Member :D
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 1,425
  • Joined: 04-February 08
  • Location:Germany

Posted 07 November 2009 - 05:34 PM

You have to use DLLOpen and DLLCall.
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

0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users