![]() |
Re: fenster minimiert?
ah sehr schön danke, hast vielleicht auch noch ne idea mit im hintergrund :gruebel:
|
Re: fenster minimiert?
ungetestet ... müsst doch eigentlich auch funktionieren wenn minimized, oder?? weil ja kein focus drauf
Delphi-Quellcode:
aber mir fällt grad was ein, maximier doch einfach das form und setz den focus drauf, dann
if command = '!text' then
begin memo1.Lines.Add(copy(strcommand,6,length(strcommand))); if Form1.FormActivated = false then begin PlaySound('message',0,SND_RESOURCE or SND_ASYNC); end; end; merkt der benutzer auch das was da is |
Re: fenster minimiert?
mein compiler hat was gegen Form1.FormActivated undefi.. bezeichner Formactivated :pale:
|
Re: fenster minimiert?
hab ich befürchtet muss mir das mal nomml durchn kopf gehen lassen, probiers mal nur mit activated
Delphi-Quellcode:
form1.activated
|
Re: fenster minimiert?
ah habs geschafft, is jetzt alles okay, ich habs jetzt so gemacht
Code:
if command = '!text' then
begin memo1.Lines.Add(copy(strcommand,6,length(strcommand))); if IsIconic(Application.Handle) then begin PlaySound('message',0,SND_RESOURCE or SND_ASYNC); end; if application.Active = false then begin PlaySound('message',0,SND_RESOURCE or SND_ASYNC); end; end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:18 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