Es cierto lo que dice mi amigo dec. Es mejor que digas con detalles las cosas que necesitas hacer, como y de que manera. o bueno, algo que nos indique como quieres hacer las cosas...
Ha, un ojo a esto:
Código:
------------------------------------------------------------------------
This function synthesizes a keystroke. The system can use such a =ynthesized keystroke to generate a WM_KEYUP or WM_KEYDOWN message.
VOID keybd_event(
BYTE bVk,
BYTE bScan,
DWORD dwFlags,
DWORD dwExtraInfo
);
Parameters
bVk [in] Specifies a virtual-key code. The code must be a value in the =ange 1 to 254. For a list of virtual-key codes, see Virtual-K=y Codes. bScan [in] Specifies a hardware scan code for the key. dwFlags [in] Specifies various aspects of function operation. An =pplication can use any combination of the following predefined constant values to set =he flags. Value Description KEYEVENTF_EXTENDEDKEY If specified, the scan code will be treated as =n extended key by giving it a prefix byte having the value 0xE0 (224). KEYEVENTF_KEYUP If specified, the key is being released. If not specified, the key is being pressed. KEYEVENTF_SILENT If specified, a keystroke is simulated, but no =licking sound is made.
dwExtraInfo [in] Specifies an additional 32-bit value associated with the =eystroke. Return Values
None.
Remarks
When keyboard input is disabled with EnableHardwareKeyboard(FALSE), you can simulate keyboard =nput using keybd_event.
Although keybd_event passes an OEM-dependent hardware scan =ode to the system, applications should not use the scan code. The system converts =can codes to virtual-key codes internally and clears the up/down bit in the =can code before passing it to applications.
The parameters bVk and bScan are treated independently. =he OS does not use bVk to generate bScan and does not use =I>bScan to generate bVk.
An application can simulate a press of the PRINTSCREEN key in order =o obtain a screen snapshot and save it to the clipboard. To do this, call keybd_event with the bVk parameter set to VK_SNAPSHOT, and =he bScan parameter set to 0 for a snapshot of the full screen or set =bScan to 1 for a snapshot of the active window.
Requirements
OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.
Link Library: Uibase.lib.
------------------------------------------------------------------------