The following code sends a Ctrl-F to my callback but needs an additional press of the Control key to allow typing. If I unremark the last statement it doesn't send the Ctrl-F. What is the correct way to use KeyBd_Event to send a Ctrl-F.
Thanks,
Bob Mechler
Thanks,
Bob Mechler
Code:
KeyBd_Event %VK_CONTROL, MapVirtualKey(%VK_CONTROL,0),0,0: SLEEP 0 KeyBd_Event %VK_F,MapVirtualKey(%VK_F,0),0,0: SLEEP 0 KeyBd_Event %VK_F,MapVirtualKey(%VK_F, 0), %KEYEVENTF_KEYUP, 0: SLEEP 0 'KeyBd_Event %VK_CONTROL, MapVirtualKey(%VK_CONTROL, 0), %KEYEVENTF_KEYUP, 0: SLEEP 0
Comment