Comment simuler Ctrl + Alt + H en utilisant keybd_event()? Le code suivant, ne fonctionne pas:Comment puis-je simuler Ctrl + Alt + H en utilisant keybd_event dans C winforms
keybd_event((byte)Convert.ToInt32(Keys.Control), (byte)MapVirtualKey(Convert.ToInt32(Keys.Control), 0), 0, 0);
keybd_event((byte)Convert.ToInt32(Keys.Alt), (byte)MapVirtualKey(Convert.ToInt32(Keys.Alt), 0), 0, 0);
keybd_event((byte)Keys.H, (byte)MapVirtualKey(Convert.ToInt32(Keys.H), 0), 0, 0);
keybd_event((byte)Keys.H, (byte)MapVirtualKey(Convert.ToInt32(Keys.H), 0), KEYEVENTF_KEYUP, 0);
keybd_event((byte)Convert.ToInt32(Keys.Alt), (byte)MapVirtualKey(Convert.ToInt32(Keys.Alt), 0), KEYEVENTF_KEYUP, 0);
keybd_event((byte)Convert.ToInt32(Keys.Control), (byte)MapVirtualKey(Convert.ToInt32(Keys.Control), 0), KEYEVENTF_KEYUP, 0);
avez-vous google et n'a pas trouvé de réponse ?! – Arash
'winform' ou' wpf'? – Arash
"ne fonctionne pas" peut signifier beaucoup de choses par ex. (rien ne s'est passé, exception, la mauvaise chose s'est produite, des choses aléatoires se produisent, etc) Pouvez-vous s'il vous plaît être précis –