Autor Beitrag
Kuyatzu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Mo 24.09.07 18:11 
HI,
ich hab ein Programm geschrieben das, dass Spiel "Silent Hill 3" in die Taskleiste stecken soll.
Es funzt aber nicht , ich zeig euch mal denn source woran das liegen kann

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TForm1.WmHotkey(var Msg: TMessage);
begin
  if (Msg.WParam = 1) then
  begin
  FWind := FindWindow(nil,'Silent Hill 3');
  ShowWindow(FWind,SW_Minimize)
  end;
end;


ich hab es mit einem Hotkey versucht die Hotkeys gehen auch nur dieser nicht


Moderiert von user profile iconNarses: Topic aus Sonstiges (Delphi) verschoben am Mo 24.09.2007 um 18:16
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: Di 25.09.07 16:40 
Funktioniert dein Hotkey?
Wird das Fenster korrekt gefunden?

_________________
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.
Kuyatzu Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Di 25.09.07 18:31 
Also,
der Hotkey funzt da ich ihn vorher mit meinem eigener Form ausprobiert habe. Nur wenn ich es Fenster von Silent Hill mache denn geht es nicht. Gucken ob er das Fenster gefunden hat , kann ich ja nicht machen. Da er wenn ich vor IF FWind angebe einen Paskal Fehler anzeigt.
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: Mi 26.09.07 08:29 
FWnd ist ein Integer. Schau einfach mal mit ShowMessage nach, welchen Wert der hat.

_________________
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.
Kuyatzu Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: So 30.09.07 10:39 
Guten Morgen,
sry das ich mich die Tage nicht gemeldet habe ,hatte was zu tun.
Das mit dem Minimize, ich weiß jetzt worans lag.
Und zwar wenn ich Silent Hill 3 im Fenstermodus habe denn fuzt das minimize,nur im Vollbildmodus klappt es nicht. Weiß einer vielleicht ein Lösung. danke


Halt habe was gefunden und zwar funzt es immer dann wenn Silent Hill nicht aktiv ist.
Im Vollbild ist es ja immer aktiv und im Fenster geht es da man ausen Fenster gehen kann.
wie kann ich das ändern das es auch in Vollbild geht??