hi, i need to send keystrokes an application (including, "enter", "left arrow", "right arrow", etc).
but how do i do that? i do not see any short and useful examples to doing it.
all i have got at the current moment is to get the foreground window using
HWND foregroundWindow = GetForegroundWindow();
i see the PostMessage function takes in HWND, UINT, WPARAM and LPARAM... but i have no idea which is for what. can somebody pls explain and teach me how to send keystrokes to an arbitrary application?
thanks.