Autor Beitrag
Gesus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Sa 03.07.04 12:46 
Hi! Ich bin auf der Suche nach besserem Internet Surfen mal wieder auf ein Problem gestoßen.

Problematik sieht wie folgt aus.
ich möchte, wenn ein bestimmtes Internetfenster durch Werbung geöffnet wird, das sich ein andere Fenster automatisch schliesst.

Ich habe es schon so geschrieben, dass ich das bestimmte Fenster durch FindWindow finden kann. Doch ich möchte ja nicht dieses Fenster schliessen, sondern ein 2tes Fenster, was sich dann öffnet.

Was ich damit Fragen möchte, gibt es eine Funktion, die nur überprüft ob ein bestimmtes Fenster geöffnet ist, und anschliessend das Ergebniss in Form einer Boolschen Variable weiter gibt?


Danke!
mfg gesus
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Sa 03.07.04 13:05 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
if FindWindow(...) <> 0 then
  // irgendein Fenster mit passenden Informationen gefunden
else
  // aus irgendeinem Grund kein Fenster gefunden

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Gesus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Sa 03.07.04 17:22 
thy! Hat geklappt!

mfg genus