![]() |
Re: Timer ohne Form
Vielleicht mach ich ja wirklich was falsch, hier der code der unit:
Delphi-Quellcode:
Gruß
unit main;
interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls,shellapi, extctrls; var MyTimer: TTimer; implementation {$R *.DFM} uses STNDGenPlug; procedure timerevent(sender:tobject); var handle:hdc; title:string; begin handle:=getdc(0); settextcolor(handle, clyellow); SetBkmode(handle, TRANSPARENT); title := strpas(Pointer(sendmessage(Plugin.HWNDparent, wm_user, SendMessage(Plugin.HWNDParent, wm_user, 0, 125),212))); textout(handle,100,100,pchar(title),length(title)); releasedc(0, handle); end; begin MyTimer := TTimer.Create(nil); MyTimer.Enabled := True; MyTimer.Interval := 500; @MyTimer.OnTimer := @timerevent; end. Jan |
Re: Timer ohne Form
Und wo ist die Nachrichtenschleife die Luckie vorhin schon angesprochen hat?
|
Re: Timer ohne Form
Zitat:
Gruß Jan |
Re: Timer ohne Form
Die Nachrichtenschleife bezieht sich ja nicht auf TTimer!! Bleibt wohl bezüglich TTimer nur noch ne Hilfsklasse um das hinzubekommen.
|
Re: Timer ohne Form
Verdammt, wir hatten das doch schon mal. Und ich meine, da hätten wir es so gelöst.
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:32 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz