Autor Beitrag
einfach112
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 168

xp
del7
BeitragVerfasst: Mi 08.11.06 20:38 
Hallo !
Ich habe mal wieder ein kleines Problem !
Ich würde gerne an mein Programm z.B. jede sekunde den befehl senden das die taste Pfeil-Runter gedrückt wird also KEY_DOWN......
mit sendkeys und :

ausblenden Delphi-Quelltext
1:
2:
3:
procedure TForm1.Timer1Timer(Sender: TObject);
begin
 SendKeys('{DOWN}', false);


geht das soweit auch WUNDERBAR !
Das problem ist das wenn ich in eine anderes programm starte das dann dieses programm die befehle erhält....

Mein Programm dann somit nicht mehr und es stimmt dann nichts mehr in meinem programm....

Hat jemand eine Idee ausser sowas vonwegen setfocus oder so ? will das programm später in die taskbar bzw. unten in tna machen.....

Hat jemand nen Tipp für mich ?
Bin wie immer über Hilfe mit code sehr dankbar !
thx
cu
einfach112

_________________
sorry bin noob !
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 08.11.06 20:42 
Moin!

Wenn es dein eigenes Programm ist, warum rufst du dann nicht gleich die entsprechenden Funktionen auf? :D Wozu der Umweg mit den Nachrichten... ? :gruebel:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
einfach112 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 168

xp
del7
BeitragVerfasst: Mi 08.11.06 21:08 
Titel: thx 4 backup....
naja es ist ja nur ein beispiel !
es geht mir nur darum das ich nach nem bestimmten muster befehle an mein programm schicken kann.... aber halt vor allem tastaturbefehle....

_________________
sorry bin noob !
einfach112 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 168

xp
del7
BeitragVerfasst: Do 09.11.06 21:36 
Titel: ....
haste denn ne idee ?
Ich habe nun schon alle delphi-Foren und Google durch ....
Leider finde ich nix gescheites ? ? ?

_________________
sorry bin noob !
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Fr 10.11.06 09:13 
Moin!

Ich würde direkt die Funktion aufrufen. Wenn das - warum auch immer - nicht gehen sollte, dann würde ich mit eine selbstdefinierte Fensternachricht senden.

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.