Autor Beitrag
TriphunEM
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Fr 15.04.05 14:51 
Hallo!
Ist es möglich eine AKTIVE Eingabezeile eines anderen Programmes zu füllen? Das heißt ich klicke auf eine Eingabezeile einer anderen Anwendung und kann z.B. durch drücken eine Hotkeys einen bestimmten Text einfügen!
Das mit dem Hotkey ist ja kein Thema, aber wie bekomm ich das hin das mein Prog weißt wo der Text eingefügt werden soll???

Danke!
xasx
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 34

WinXP Pro, Win 2k3 ServEnt
D2k5 PE, VS 2005
BeitragVerfasst: Fr 15.04.05 15:14 
Das geht eventuell mit Hilfe der Windows-API und FindWindow, aber ob du da in ein anderes Fenster hinein kommst, weiß ich nicht; ich denke eher nicht ... :?
bigTimo
Hält's aus hier
Beiträge: 5



BeitragVerfasst: Mi 11.05.05 16:08 
in eine AKTIVE eingabezeile? das heißt text einfügen in einen edit, der den Fokus enthält. Also brauchst du bei onhotkey ein paar Tastendrücke hintereinander simulieren. Ich hoffe mal du hast mit hotkey einen Global Hook gemeint.
tastendrücke simuliert man mit keybd_event()
inselberg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458



BeitragVerfasst: Sa 14.05.05 17:51 
fenster suchen ..sendkey ...

würd mal tippen >10 hits bei ner suche im forum

_________________
hans bist du das ?
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Sa 14.05.05 18:10 
ja aber er will ja das edit suchen, welches den Fokus hat :idea:
inselberg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458



BeitragVerfasst: Di 24.05.05 21:46 
.. und die will er füllen ... also doch sendkey ... es hat ja schon den focus ;)
wieso es einfach machen wenns auch kompliziert geht

_________________
hans bist du das ?