Autor Beitrag
Lupin003
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Mo 12.07.04 14:18 
Ich würde gerne einen Tastendruck für ein anderes Program simulieren... wie geht das? =)

_________________
n00b alarm ;P
inselberg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458



BeitragVerfasst: Mo 12.07.04 14:44 
sendkey...

mir scheint als habe ich sowas ähnliches schon vor einigen tagen geschrieben...
den tipp auf die suchfunktion schenk ich mir da das letztes mal schon schief gegangen ist *g*

_________________
hans bist du das ?
Lupin003 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Mo 12.07.04 20:34 
damit geht es leider nicht - kann vielleicht auch deshalb sein weil die Anwendung DirectInput benutzt :?

_________________
n00b alarm ;P
Lupin003 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Mo 12.07.04 21:17 
Damit hab ich es hin bekommen (ist VB code, aber das macht ja nix =)):

Call keybd_event(0, &H2E, 0, 0)
Sleep 100
Call keybd_event(0, &H2E, KEYEVENTF_KEYUP, 0)

Beim 2ten parameter kann man den DirectInput scancode eintragen (den kommt man zB dadurch raus indem man das keyboard example vom DX SDK startet und die gewünschte Taste drückt).

_________________
n00b alarm ;P