Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#10

Re: Simulation Strg+C geht nicht mehr unter Vista

  Alt 22. Jun 2008, 17:52
Zitat von Logic:
Hey streitet euch doch ned.

Also kann schon sein, dass mein Vista das nicht mehr so akzeptiert... nur hab ich jetzt mal die SendInput Funktion mir in msdn angeschaut:

Delphi-Quellcode:
UINT SendInput(
    UINT nInputs,
    LPINPUT pInputs,
    int cbSize
);
damit kann ich leider nicht so viel anfangen
Bei msdn steht ja noch mehr als der Funktionsheader.

Zitat:
Parameters

nInputs
[in] Number of structures in the pInputs array.
pInputs
[in] Pointer to an array of INPUT structures. Each structure represents an event to be inserted into the keyboard or mouse input stream.
cbSize
[in] Specifies the size, in bytes, of an INPUT structure. If cbSize is not the size of an INPUT structure, the function fails.


1. Parameter: Anzahl zu sendenden Tastendrücke.
2. Parameter: Ein Array of TInput in denen die Art der Tastendrücke spezifiert wird (In der Praxis das erste Element des Arrays!)

Das Input-Record:

Delphi-Quellcode:
tagINPUT = packed record
  Itype: DWORD;
  case Integer of
    0: (mi: TMouseInput);
    1: (ki: TKeybdInput);
    2: (hi: THardwareInput);
end;
lType: Die Art des Inputs:
  • INPUT_MOUSE
  • INPUT_KEYBOARD
  • INPUT_HARDWARE

3. Parameter: Größe eines Input-Records SizeOf(TInput)

Steht aber alles auch in MSDN

Gruß
Neutral General
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat