English
Forum

Druckerauftrag detect

 
- Page 1 -



Rolf
Koch
Hallöchen today frag I time so into round, I with Print never so much made have.
following approach to the problem:
we've with us one computer with printer on the camp.
If one customer one unit bought has and on the cash-desk payd has, so comes with us one entsprechender voucher from the printer, so we The washing-machine, TV or such one Zeugs raussuchen can.
now would I gladly one nebenbeilaufendes Tool write, which a Sound abspielt, if one such voucher from the printer comes.
means your, I could this somehow achieve?
 
12/20/08  
 



 
- Page 2 -


Hehe and now can The Info yet with Gonzo by offered to australia send and there becomes then the Trashcan ausgeleert.
 
12/21/08  
 




Rolf
Koch
strain with iF geskypet. I must unfortunately from the Fa. from no Fremdsoftware (solely then my) install. means goes these Variante neither
 
12/21/08  
 




Frank
Abbing
the Tool uses The windows-job-API. look you The still at times:

AbortPrinter
AbortProc
AddForm
AddJob
AddMonitor
AddPort
AddPrinter
AddPrinterConnection
AddPrinterDriver
AddPrintProcessor
AddPrintProvidor
AdvancedDocumentProperties
ClosePrinter
ConfigurePort
ConnectToPrinterDlg
DeleteForm
DeleteMonitor
DeletePort
DeletePrinter
DeletePrinterConnection
DeletePrinterData
DeletePrinterDriver
DeletePrintProcessor
DeletePrintProvidor
DocumentProperties
EndDocPrinter
EndPagePrinter
EnumForms
EnumJobs
EnumMonitors
EnumPorts
EnumPrinterData
EnumPrinterDrivers
EnumPrinters
EnumPrintProcessorDataTypes
EnumPrintProcessors
FindClosePrinterChangeNotification
FindFirstPrinterChangeNotification
FindNextPrinterChangeNotification
FreePrinterNotifyInfo
GetForm
GetJob
GetPrinter
GetPrinterData
GetPrinterDriver
GetPrinterDriverDirectory
GetPrintProcessorDirectory
OpenPrinter
PrinterMessageBox
PrinterProperties
ReadPrinter
ResetPrinter
ScheduleJob
SetForm
SetJob
SetPort
SetPrinter
SetPrinterData
StartDocPrinter
StartPagePrinter
WaitForPrinterChange
WritePrinter
 
12/21/08  
 




Rolf
Koch
OK Frank thanks will be me the in a ruhigen Minute (hours ^^) time reinziehen
 
12/21/08  
 




E.T.
I had too time something like for To dwell gebastelt. I Have there but just the Spool-directory monitors, whether what drinn lying (means The simple shape without API etc.).
has integrally well functions, it get by me any 4 printer (incl. pdf-Printer) notice.
Vorraussetztung is naturally, the the (The) printer whom Spooler benefit (but this is Yes meißt so).
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
12/21/08  
 




Rolf
Koch
hears itself well on E.T.
I give sincere To, that I not at all known, that it a directory gives. is this one Tempverz.?
 
12/21/08  
 




Rolf
Koch
Aja thanks for Info
[...] 
 
12/21/08  
 




E.T.
not beautiful, but on The speedy . by me working it, it go too pdf-printer, Fax-printer etc. berücksichtigt. the Verz. must naturally fit.
by me does it jetzige Bsp not without Window (ListBoxList ?? ), but so is the Test at least again beendbar
CompileMarkSeparation
Declare Ende%
WindowStyle 16+64+8
Window 0,0

WhileNot Ende%

    waitinput 500
    ClearList
    AddFiles "C:\WINDOWS\system32\spool\PRINTERS\*.*"

    If %GetCount-1

        SOUND 440,5
        SOUND 640,5

    EndIf

    If %Key = 2

        Ende% = 1

    EndIf

Wend

end

Created by me too no processor-Last.
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
12/21/08  
 




Rolf
Koch
is Yes again typical. alike I drucke in the way happens nothing. it go no Files stored (means tempmässig and at all)
Nachtrag:
still - Have time the waitinput through sleep supplant and already functions it. comic. Well wants Yes anyhow then with a Timer works.
 
12/21/08  
 




Paul
Glatz
by me goes it! (Win Vista)
 
12/21/08  
 




E.T.
already time into printer-Settings geschaut ??

49 kB
Hochgeladen:12/21/08
Downloadcounter133
Download
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
12/21/08  
 




Andreas
Miethe


Hello Rolf,
versuchs time herewith, there becomes the standard-Dricker monitors.
CompileMarkSeparation
 $H windows.ph
DEF Get_STDPrinter(1) Substr$(ReadIni$("WIN.INI","Windows","Device"),@&(1),",")
Var Spool& = ImportDll("Winspool.drv","")
cls
DEF &PRINTER_CHANGE_JOB  $FF00
DEF &INFINITE $FFFFFFFF
DEF &PRINTER_CHANGE_ADD_JOB $100
Var A& = 0
Var chgObject& = 0
Var pdwChange& = 0
Var fcnreturn& = 0
Var hPrinter& = 0
Var Printer$ = Get_STDPrinter(1)
OpenPrinterA(Addr(Printer$),Addr(hPrinter&),0)
chgObject& = FindFirstPrinterChangeNotification(hPrinter&,&PRINTER_CHANGE_JOB, 0, 0)

Repeat

    ~WaitForSingleObject(chgObject&,200)200 Millisekunden warten
    fcnreturn& = FindNextPrinterChangeNotification(chgObject&, Addr(pdwChange&),0,0)

    If fcnreturn&

        If pdwChange& = &PRINTER_CHANGE_ADD_JOB

            Print "neuer Druck-Job"

        endif

    Endif

Until A& = 1Abbruchbedingungen vielleicht besser mit einem Button bestimmen ?

FindClosePrinterChangeNotification(chgObject&)
ClosePrinter(hPrinter&)
end
 
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
12/21/08  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

110.989 Views

Untitledvor 0 min.
rquindt05/17/20
Rainer Hoefs03/10/18
Rolf Koch01/20/18
p.specht02/08/17
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie