Autor Beitrag
Pr0g3r
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 44

Win XP
Turbo Pascal, Delphi 5&7, Ti-Basic
BeitragVerfasst: Mi 11.05.11 19:41 
Das Thema sagt ja eigentlich schon alles.
Ich möchte gerne ein Programm schreiben, was sich sozusagen "Unsichtbar" machen kann und auf Knopfdruck wieder sichtbar wird. Das Problem ist nur, wenn ich Form1.Hide mache, reagiert sie nicht mehr auf die OnKey Events.
Habt ihr vielleicht eine Idee, wie man das lösen könnte?

Ich freue mich schon auf die Lösungen :wink:

Pr0g3r
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19338
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 11.05.11 19:48 
Schau dir RegisterHotkey an. ;-)
Pr0g3r Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 44

Win XP
Turbo Pascal, Delphi 5&7, Ti-Basic
BeitragVerfasst: Do 12.05.11 12:38 
aber das muss ich manuell machen, oder kann das auch irgendwie mit Delphi machen?

Ansonsten dachte ich eher an so was :
ausblenden Delphi-Quelltext
1:
If key = 'A' Then Form1.Show;					


nur dass ich irgendwie den gedrückten Knopf rausbekommen muss.

Moderiert von user profile iconMartok: Delphi-Tags hinzugefügt
Tropby
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 71
Erhaltene Danke: 4

Vista, Win XP, Win 89
Turbo Delphi Ex.
BeitragVerfasst: Do 12.05.11 12:51 
Hier ist ein Beispiel wie man RegisterHotkey benutzt.

www.swissdelphicente...showcode.php?id=2375

Das was du da versucht geht nur wenn deine Form den Focus hat. Und das hat sie nunmal nicht wenn sie unsichtbar ist ;)

_________________
Tropby
Pr0g3r Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 44

Win XP
Turbo Pascal, Delphi 5&7, Ti-Basic
BeitragVerfasst: Do 12.05.11 13:31 
ahhhh,

Danke

//edit: es funzt ^^