Autor Beitrag
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Do 28.12.06 02:09 
Hallo!

Ich habe hier ein Programm (nicht von mir [Nemp]), dass mit bestimmten Tastenkombinationen global ferngesteuert wird. Dazu wird RegisterHotkey verwendet.

Nun habe ich ein anderes Programm (von mir), dass diese Tastenkombination, z.B. Strg+Alt+N für Nächsten Titel auf Sprachbefehl auslösen soll. Dazu habe ich mir gedacht könnte man SendKeys nehmen. Kann man aber nicht. Welche Möglichkeiten habe ich denn da so? (Außer Gausi um ne andere Schnittstelle anbetteln?)
Von mir aus auch irgendwelche verrückten Message-Sendereien, hauptsache irgendwas. Mir fällt beim besten Willen keine Lösung, aber auch kein guter Suchbegriff ein.

Grüße
Martok

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
Reinhard Kern
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 591
Erhaltene Danke: 14



BeitragVerfasst: Do 28.12.06 12:25 
user profile iconMartok hat folgendes geschrieben:
Hallo!

Ich habe hier ein Programm (nicht von mir [Nemp]), dass mit bestimmten Tastenkombinationen global ferngesteuert wird. Dazu wird RegisterHotkey verwendet.

Nun habe ich ein anderes Programm (von mir), dass diese Tastenkombination, z.B. Strg+Alt+N für Nächsten Titel auf Sprachbefehl auslösen soll. Dazu habe ich mir gedacht könnte man SendKeys nehmen. Kann man aber nicht. Welche Möglichkeiten habe ich denn da so? (Außer Gausi um ne andere Schnittstelle anbetteln?)
Von mir aus auch irgendwelche verrückten Message-Sendereien, hauptsache irgendwas. Mir fällt beim besten Willen keine Lösung, aber auch kein guter Suchbegriff ein.

Grüße
Martok


Hallo,

Zitat
The Visual Basic Sendkeys sub has never been 100% reliable. With Windows Vista on the horizon, its days are numbered. If you don't believe us, download the Internet Explorer 7 beta and try Sendkeys with it. The only reliable way for VB programers to send keys in the future will be to use the Windows API, keybd_event function and that can mean a huge amount of re-coding.
Ende Zitat

Wenn Sprachbefehle deine Lebensaufgabe sind, könntest du auch in Betracht ziehen, einen (virtuellen)Tastatur-Treiber zu schreiben und parallel zur normalen Tastatur zu installieren.

Gruss Reinhard
dekoepke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28

Win XP, Suse Linux 11.1
Delphi 5 Prof. Delphi 7 Enterprise Edition
BeitragVerfasst: Di 26.02.08 00:40 
Könntet ihr mir das vielleich erklären ? Ich bin auch Auf der Suche für sowas .. ich will ein Makro Programm das vorgefertigte Text in ein aktiviertes Textfeld einfügt.

MFG

Bitte um antwort
nagel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 708

Win7, Ubuntu 10.10

BeitragVerfasst: Di 26.02.08 00:46 
user profile iconMartok hat folgendes geschrieben:
... SendKeys ... Message ... Suchbegriff ...
opfer.der.genauigkeit
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754
Erhaltene Danke: 1



BeitragVerfasst: Di 26.02.08 02:00 
Was spricht gegen keybd_event?

_________________
Stellen Sie sich bitte Zirkusmusik vor.