delphi 在别的方法 调用keypress事件

PostMessage(Self.Handle, WM_KEYDOWN, VK_RETURN, 0);

原文地址:https://www.cnblogs.com/yangxuming/p/6821039.html