Autor Beitrag
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Di 10.10.06 17:17 
Hi!

Ich möchte herausfinden, wann der Bildschirmschoner gestartet und beendet wird. Wenn er gestartet wird, bekommt das aktive Fenster ein WM_SYSCOMMAND mit SC_SCREENSAVE geschickt. Das sollte ich mit einem Hook mitschneiden können.
Aber wie bekomme ich mit, wenn der Bildschirmschoner wieder beendet wird?

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
rizla
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 417
Erhaltene Danke: 2

XP
FPC mit Lazarus
BeitragVerfasst: Di 10.10.06 18:43 
gedankenblitz:
is der screensaver nicht einfach ein normaler task der ausgeführt wird?
hmm.. :gruebel:

_________________
if you have what they want - they'll find a way to take it (bruce sterling)
WOW - 10 JAHRE Mitglied beim Delphi-Forum. Wie die Zeit vergeht, Freunde.
hathor
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 10.10.06 20:25 
Ein Screensaver ist ein Exe-Programm mit der Endung .scr

Man kann es umbenennen in .exe und mit /s starten, mit /c konfigurieren.

z.B.: C:\_2006-10-10\ssstars.scr.exe /c
alias5000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Di 10.10.06 20:40 
Das will ich aber nicht. Ich will nicht sen Screensaver ausführen, sondern ich will mitkriegen, wenn er ganz normal beendet wird.

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Di 10.10.06 20:46 
Wenn es aber ein Prozess ist, kannst du einfach prüfen, wann der Prozess beendet wurde.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
alias5000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Di 10.10.06 20:59 
Hmm da iss natürlich was dran ;)
muss mich damit mal demnächst auseinandersetzen.
Danke

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
rizla
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 417
Erhaltene Danke: 2

XP
FPC mit Lazarus
BeitragVerfasst: Mi 11.10.06 18:36 
yessss..

:strike again:

:)

_________________
if you have what they want - they'll find a way to take it (bruce sterling)
WOW - 10 JAHRE Mitglied beim Delphi-Forum. Wie die Zeit vergeht, Freunde.