Synthesizes a keystroke. The system can use such a synthesized keystroke to generate a WM_KEYUP or WM_KEYDOWN message.
dwFlags can be 0 or the following:
KEYEVENTF_KEYUP: If specified, the key is being released. If not specified, the key is being depressed.
Synthesizes mouse motion and button clicks.
dwFlags can be certain combinations of the following values:
MOUSEEVENTF_ABSOLUTE: Specifies that the dx and dy parameters contain normalized absolute coordinates. If not set, those parameters contain relative data: the change in position since the last reported position. This flag can be set, or not set, regardless of what kind of mouse or mouse-like device, if any, is connected to the system.
MOUSEEVENTF_MOVE: Specifies that movement occurred.
MOUSEEVENTF_LEFTDOWN: Specifies that the left button is down.
MOUSEEVENTF_LEFTUP: Specifies that the left button is up.
MOUSEEVENTF_RIGHTDOWN: Specifies that the right button is down.
MOUSEEVENTF_RIGHTUP: Specifies that the right button is up.
MOUSEEVENTF_MIDDLEDOWN: Specifies that the middle button is down.
MOUSEEVENTF_MIDDLEUP: Specifies that the middle button is up.
MOUSEEVENTF_WHEEL: Specifies that the wheel has been moved, if the mouse has a wheel. The amount of movement is specified in dwData.
MOUSEEVENTF_XDOWN: Specifies that an X button was pressed.
MOUSEEVENTF_XUP: Specifies that an X button was released.
Gets the number of milliseconds that have elapsed since the application was started.
Synthesizes keystrokes, mouse motions, and button clicks. Returns the number of events that it successfully inserted into the keyboard or mouse input stream. If the function returns zero, the input was already blocked by another thread.
Causes a thread to relinquish the remainder of its time slice and become unrunnable for at least the specified number of milliseconds, after which the thread is ready to run. In particular, if you specify zero milliseconds, the thread will relinquish the remainder of its time slice but remain ready. Note that a ready thread is not guaranteed to run immediately. Consequently, the thread may not run until some time after the specified interval elapses.
Gets the number of milliseconds that have elapsed since Windows was started.
Calls Type on each character in the string to emulate the typing of the whole string by the current keyboard.
Uses KeyboardEvent to send the correct virtual keycode(s) to emulate typing of the specified character by the current keyboard. Multiple KeyboardEvent calls may be made if typing the specified character requires holding Shift, Alt, and/or Control.
Translates a character to the corresponding virtual-key code and shift state for the current keyboard.
Copyright © 2006 Shawn (L. Spiro) Wilcoxen