Autor Beitrag
klezmor
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 558


delphi 6 personal delphi 2005 personal
BeitragVerfasst: Fr 25.05.07 00:40 
Das Thema verrät worums geht. Ich will ein selbstgeschriebenes Programm unter windows per tastenkombination starten. Man kann ja unter eigenschaften einstellen, dass eine verknüfung mit einer bestimmten tastenkombination gestartet wird. Allerdings muss man das per hand einstellen. Wie kann man windows per delphicode mitteilen, dass ein eigenes programm per bestimmter tastenkombination gestartet wird?

Gruß Klezmor.

_________________
"Beware of bugs in the above code; I have only proved it correct, not tried it." Donald Knuth
klezmor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 558


delphi 6 personal delphi 2005 personal
BeitragVerfasst: Mo 28.05.07 11:10 
Gibt es die möglichkeit unter windows überhaupt?

_________________
"Beware of bugs in the above code; I have only proved it correct, not tried it." Donald Knuth
Jakob Schöttl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 929
Erhaltene Danke: 1


Delphi 7 Professional
BeitragVerfasst: Mo 28.05.07 11:19 
Du kannst bei allen Verknüpfungen eine Tastenkombination einstellen manuell, also muss es auch mit einem Programm funktionieren. Wie weiß ich leider nicht...

Aber ich würde das vielleicht mit einem anderen Programm machen, das automatisch gestartet wird, im Hintergrund läuft, und bei bestimmten Hotkeys deine Programme ausführt.
Quake User
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 159



BeitragVerfasst: Mo 28.05.07 11:58 
Ich würde kein Programm verwenden, dass meine Shortcuts ändert. Das ist ein recht harter Eingriff in meine Rechnerkonfiguration.

Zu deiner Frage: suche nach WM_HOTKEY
klezmor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 558


delphi 6 personal delphi 2005 personal
BeitragVerfasst: Fr 15.06.07 15:51 
mit getasynckey könnte ich es ja eigentlich auch machen oder?

_________________
"Beware of bugs in the above code; I have only proved it correct, not tried it." Donald Knuth
klezmor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 558


delphi 6 personal delphi 2005 personal
BeitragVerfasst: Mo 18.06.07 23:23 
Gibts noch ne andere Möglichkeit, als per Timer mit getasynckeystate die Tastatur abzufragen, das ist auch sehr resourcenkostspielig.

_________________
"Beware of bugs in the above code; I have only proved it correct, not tried it." Donald Knuth
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 18.06.07 23:47 
Man kann natürlich per Code eine Verknüpfung anlegen und da kann man auch einen Shotcut zuweisen. entsprechenden Code findest du im Forum oder mit Google.
klezmor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 558


delphi 6 personal delphi 2005 personal
BeitragVerfasst: Mi 20.06.07 00:50 
Ich werde es jetzt mal mit registerhotkey versuchen und das programm einfach in den autostart packen, bzw. den nötigen registrierungseintrag machen.

_________________
"Beware of bugs in the above code; I have only proved it correct, not tried it." Donald Knuth