Autor Beitrag
Hux
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 171



BeitragVerfasst: Mi 10.08.05 12:29 
Hallo Leute...,

Ich habe wieder mal ne Frage an euch:
Wie kann Tastenkombinationen von meinem Programm ausführen lassen?
Z.B: STRG+ALT+ENTF...

Danke im Vorraus...!

Der Hux
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 10.08.05 12:42 
Normale User-Level-Tastenkombinationen gehen mit Suche in: Delphi-Forum, Delphi-Library SENDKEYS, Low-Level-Tastenkombinationen wie STRG+ALT+ENTF müssen speziell gesendet werden. Genaures zum Vorgehen bei zweiterem kann ich dir nicht geben, da ich's noch nicht ausprobiert hab.

_________________
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.
Allesquarks
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 510

Win XP Prof
Delphi 7 E
BeitragVerfasst: Mi 10.08.05 13:15 
Ich dachte immer unter Windows ist gerade das gute, dass bestimmte Tastenkombinationen immer von Windows behandelt werden (damit kein zweiter Log-In-Screen übergeblendet werden kann und s.o. (oder ist das nur in Windows 2000 fest integriert?).

Würde also denken, dass Du vielleicht die Information erhältst, dass Strg-Alt-entf gedrückt wurde, aber einen Aufruf des Task-Managers nicht verhindern kannst.
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 10.08.05 13:40 
Bestimmte Tastenkombinationen (wie z.B. Strg+Alt+Entf werden direkt im KernelMode abgefangen, weshalb man diese auch unter WNT++ nicht abfangen kann (außer man schreibt sich dafür einen eigenen Treiber).

Eigene Login-Screens bauen ist möglich (hatten wir erst vor kurzem), indem man Suche im MSDN CREATEDESKTOP nutzt.

Das Umleiten von Systemtastenkombis ist nicht möglich. Jedoch würd man über fast alle per WM_SYSCOMMAND und WM_SYSKEY informiert. Ausnahme hier ist wiedermal der beliebte Affengriff, da dieser einen Kontext-Switch auslöst und den aktiven Desktop wechselt ;-)

_________________
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.
Hux Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 171



BeitragVerfasst: Mi 10.08.05 19:00 
Es muss nicht STRG+ALT+ENTF sein.
Könnt ihr mir sagen wie ich normale Tastenkombis wie z.B:
ALT+TAB senden kann?

Der Hux
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 10.08.05 21:51 
Wenn Du deine Delphi-CD in dein CD-Laufwerk legst, dann müsstest Du darauf eine Unit SendKeys.pas finden. Kopier Die einfach mal in dein Projekt-Verzeichnis, binde sie in dein Projekt ein und sieh dann weiter. Ansonsten nutz bitte den Suchlink in meinem ersten Post.

_________________
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.