PostMessage用法

// 模拟在E d i t 1组件中按下了字母a键

PostMessage(Edit1.Handle, WM_KEYDOWN, 65, 0);

原文地址:https://www.cnblogs.com/maweiwei/p/7158046.html