Originally Posted by
zeco
Okies, thanks, i'll keep that in mind next time. It does sound a lot more efficient. By the way, do you know a good method to tell the computer that a certain key is being pressed? For example make the computer think that the 3 key is being pressed or something
Code:
// press DOWN "Alt-Tab"
keybd_event(VK_MENU, 0, 0, 0);
keybd_event(VK_TAB, 0, 0, 0);
::Sleep(1000);
// stop pressing "Alt-Tab"
keybd_event(VK_MENU, 0, KEYEVENTF_KEYUP, 0);
keybd_event(VK_TAB, 0, KEYEVENTF_KEYUP, 0);
copied from CodeProject ^^