标签:
2 ways:
1. under TForm:
if assigned(focused) then
Focused.keydown(key,keychar,[]);
2. using screen object:
if assigned(Screen.focusControl) then
Screen.focusControl.keydown(key,keychar,[]);
I think lots of people want to know this.
Best regards
John Shi
http://bbs.2ccc.com/topic.asp?topicid=513745
simulate windows postmessage or keydown
标签:
原文地址:http://www.cnblogs.com/findumars/p/5741014.html