void CKeyBoardDlg::OnBnClickedButton33() //for a { keybd_event(0x41,0,0,0); keybd_event(0x41,0,KEYEVENTF_KEYUP,0); } void CKeyBoardDlg::OnBnClickedButton45() //for shift { if(m_nFirst==1) { m_nFirst=0; keybd_event(0x10,0,0x002,0); } else if(m_nFirst==0) { keybd_event(0x10,0,0,0); m_nFirst=1; } }
keystroke event(keybd_event)
keybd_event()
KEYEVENTF_KEYUP
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)