Autor Beitrag
mandawar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 25

Win XP, Suse 9.0
3.0
BeitragVerfasst: So 28.03.04 12:04 
Hi
Ich hab ein Programm gemacht, welches, wenn ein bestimmter Pixel auf dem aktuellen Bildschirm eine bestimmte Farbe annimmt einen Key an diese Applikation schicken soll. Ich bin so weit, dass er den KEy drückt, jedoch schiebt er das Programm in den Hintergrund und öffnet mein Delphi-proggie. Source hier:
www.pastebin.com/52632

Wäre echt geil, wenn mir da wer echt helfen könnte, und mir sagen kann, wie ich das verhindere, dass er das Programm in den hintergrund rückt.
Danke im Vorraus
Mandawar
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 28.03.04 12:21 
mit formstyle := fsStayOnTop;oder mit setforegroundwindow (handle);

_________________
In the beginning was the word.
And the word was content-type: text/plain.
mandawar Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 25

Win XP, Suse 9.0
3.0
BeitragVerfasst: So 28.03.04 14:55 
Ich habs mit beidem versucht, aber es geht nicht... bei formstyle:= ...
flackert mein Programm nur kurz auf, und er kehrt zu dem eigentlichen Programm zurück, die Taste "A" drückt er dennoch nicht in dem Spiel sondern in meinem Delphi-Prog
Mandawar
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 29.03.04 19:14 
probier mal das:windows.SetForegroundWindow (handle);das funktioniert bei mir. es holt das formular, dass diesen code aufruft in den fordergrund und giebt ihm den fokus

_________________
In the beginning was the word.
And the word was content-type: text/plain.