Autor Beitrag
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Di 24.11.09 13:08 
Hi,
ich möchte die Tasten F1-F12 in meinem Projekt für eigene Proceduren verwenden!
funct ja auch, aber leider sind einige Tasten an was anderes gebunden.
z.B. F3 für das dropdownfeld für die combobox, oder F10 für das selecten des mainmenu... :(

Gibt es nun eine Möglichkeit, dieses zu verhindern, das diese Tasten F1-F12 standart Windowsaufgaben ausführen???

Gruss Alf

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!
thepaine91
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 763
Erhaltene Danke: 27

Win XP, Windows 7, (Linux)
D6, D2010, C#, PHP, Java(Android), HTML/Js
BeitragVerfasst: Di 24.11.09 13:13 
JA
ALF Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Di 24.11.09 13:19 
user profile iconthepaine91
Zitat:
Ja

nice Antwort!!

ist mir aber keine Hilfe, ich würde nicht posten wenn ich wüsste wie :oops:

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!
thepaine91
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 763
Erhaltene Danke: 27

Win XP, Windows 7, (Linux)
D6, D2010, C#, PHP, Java(Android), HTML/Js
BeitragVerfasst: Di 24.11.09 13:26 
ALF hat folgendes geschrieben:

Gibt es nun eine Möglichkeit, dieses zu verhindern, das diese Tasten F1-F12 standart Windowsaufgaben ausführen???

Du hast gefragt ob es eine möglichkeit gibt und ich habe es beantwortet.

Tastendruck abfangen o.ä. in der Df Suche könnte weiterhelfen.
Das wurde nämlich schon oft genug gefragt bzw. beantwortet.

EDIT:
Aber weil ich heut mal nicht so bin.

OnKeyDown
OnMessage
Keyboard Hook

sollte dir weiter helfen.
ALF Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Di 24.11.09 15:05 
ja,
vieles gelesen, aber nix gefunden wie ich es umsetzen soll, kann mh....
OnKeyDown (TForm1.FormKeyDown) benutze ich ja schon für die einzelnen F-Tasten.
OnMessage währe ne Möglichkeit wenn ich damit klar käme. :(
Keyboard Hook zu aufwendig wie ich gesehen habe, vom verstehen ganz zu schweigen!

Währe schön wenn jemand für diesen Zweck mal ein Beispiel hätte.

Gruss Alf

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!
thepaine91
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 763
Erhaltene Danke: 27

Win XP, Windows 7, (Linux)
D6, D2010, C#, PHP, Java(Android), HTML/Js
BeitragVerfasst: Di 24.11.09 15:12 
Form1 Keypreview true...

dann
im
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
  Form1Onkeydown(......)
begin
  if Key = .. then 
  begin
    do was f1 taste tun soll
    key := 0;
  end;
end;


mfg nic
ALF Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Di 24.11.09 15:17 
rofl :shock:

da muss man erst mal drauf kommen!
So einfach und bin doch so blind 8)

Thx es funct

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!