Autor Beitrag
kandesbunzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 116
Erhaltene Danke: 1


Delphi 7, XE2
BeitragVerfasst: Di 04.11.08 16:52 
Hallo allerseits,

wie kann ich gezielt eine (Fremd-)Applikation (nicht das gesamte System!) künstlich verlangsamen?

Hintergrund: Ein Druckertreiber reagiert zu früh, bevor der Ausdruck den Drucker verlassen hat. Ein "Delayer" soll den Druckertreiber für bspw. eine Sekunde "schlafen" legen, damit der Drucker wieder ready ist, bevor der Treiber wieder darauf zugreift.

Hierzu habe ich mich mit "sleep" versucht, aber dabei wird nur die eigene Applikation bzw. Windows verlangsamt.

Danke und auf bald ...
kandesbunzler.
kandesbunzler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 116
Erhaltene Danke: 1


Delphi 7, XE2
BeitragVerfasst: So 09.11.08 17:47 
Hallo allerseits,

hat keiner eine Idee?
Der sleep - Befehl verzögert ja nur die eigene Applikation ...

Auf bald ...
kandesbunzler.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 09.11.08 18:41 
Schreib den Hersteller deines Druckertreibers an und bitte ihn, das Problem zu beheben.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Flamefire
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1207
Erhaltene Danke: 31

Win 10
Delphi 2009 Pro, C++ (Visual Studio)
BeitragVerfasst: So 09.11.08 18:56 
nimm dir nen debugger (ollydebugger) such die position in dem programm, das verzögert werden soll und mach mit ner codecave nen sleep-befehl da rein...
das ganze vl noch als dll und mittels dll-injection jeweils laden

könnte aber leicht kompliziert werden....je nachdem ob du da schonmal was in der richtung gemacht hast