Autor Beitrag
kronoide
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 51



BeitragVerfasst: Do 08.02.07 16:12 
Hallo erstmal,
kennt ihr vielleicht eine funktion mit dem das programm tasten drückt,
ist vielleicht etwas komisch ausgedrückt aber hoffe das ihr mich versteht :)
perry5
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 102



BeitragVerfasst: Fr 09.02.07 16:01 
Wurde schon mal gefragt, musste einfach mal die Forensuche benutzen :-D
basti_1984
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 104

Linux, Win Xp, Win 2000
Delphi, C, C++, PHP,
BeitragVerfasst: Fr 09.02.07 16:02 
Ich kann mir darunter nicht wirklich etwas vorstellen werde mal bitte etwas konkreter.

_________________
Wissen ist Macht. Nichts zu Wissen macht auch nichts
marvin521993
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 172



BeitragVerfasst: Fr 09.02.07 16:08 
on key press
basti_1984
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 104

Linux, Win Xp, Win 2000
Delphi, C, C++, PHP,
BeitragVerfasst: Fr 09.02.07 16:22 
Mit OnKeyPresss kannst du auf Tastendrücken in Eingabefelder reagierenalternativ ist Onchange oder ähnliches möglich ganz was du suchst.
Wenn du noch weitere hilfe benötigst melde dich einfach

_________________
Wissen ist Macht. Nichts zu Wissen macht auch nichts
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Fr 09.02.07 16:26 
ist vl. das die antwort die du suchest: www.dbr-software.de/delphi/keyb.php

lg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
kronoide Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 51



BeitragVerfasst: Fr 09.02.07 20:04 
manche haben mich falsch verstanden ich möchte nicht das er auf tasten reagiert sondern
das er tastendruck simuliert :wink:

und jetzt habe ich diesen quelltext:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
procedure tastendruck(T, ZS: word; zs2:word; TWC: TWinControl);
begin
  if TWC <> nil then 
  TWC.setfocus;
  keybd_event(ZS, 000);
  keybd_event(T, 000);
  keybd_event(zs2, 000);
  keybd_event(zs2, 0, keyEventF_keyUp, 0);
  keybd_event(T, 0, keyEventF_keyUp, 0);
  keybd_event(ZS, 0, keyEventF_keyUp, 0);
end


procedure TForm1.Button1Click(Sender: TObject);
begin
  tastendruck(VK_DELETE, VK_menu, VK_LCONTROL, application.mainform);

end;

end.


und möchte das er den taskmanager aufruft aber macht er leider nicht,
wisst ihr was falsch ist? :oops:
Saubäär
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 376



BeitragVerfasst: Fr 09.02.07 22:42 
Hi kronoide,

wenn du nur den Taskmanager aufrufen willst, warum dann nicht mit ShellExecute sondern so umständlich???

ausblenden Delphi-Quelltext
1:
 ShellExecute(Handle, 'open''taskmgr.exe'nilnil, SW_NORMAL);					


Gruß

Saubäär