How to simulate multimedia key press (in C)?
问题 Modern keyboards have special multimedia keys, e.g. 'Pause/Play' or 'Open Web Browser'. Is it possible to write a program that "presses" these keys? I would prefer solution in C, but I would accept a language agnostic solution, too. 回答1: Use the SendInput Windows API, if you are talking about programming under Win32. You need to build INPUT structures, setting the type member to INPUT_KEYBOARD. In the ki member (KEYBDINPUT type), you can set vk (virtual key) to your desired VK code (for