W weisunding Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-14 #1 万能五笔输入法有一个按钮"取词"----可以取得屏幕上所选择的词,请问这是怎么<br>实现的????<br><br>注音,不是鼠标取词,是取屏幕上被选择的词!!!<br><br>50分送给高手!
Z zw84611 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-14 #2 放一个Timer,OnTimer中执行<br><br>keybd_event(VK_Control, MapVirtualKey(VK_Control, 0), 0, 0);<br>keybd_event(ord('C'), MapVirtualKey(ord('C'), 0), 0, 0);<br>keybd_event(ord('C'), MapVirtualKey(ord('C'), 0), KEYEVENTF_KEYUP, 0);<br>keybd_event(VK_Control, MapVirtualKey(VK_Control, 0), KEYEVENTF_KEYUP, 0);<br>Edit1.PasteFromClipboard;<br><br>
放一个Timer,OnTimer中执行<br><br>keybd_event(VK_Control, MapVirtualKey(VK_Control, 0), 0, 0);<br>keybd_event(ord('C'), MapVirtualKey(ord('C'), 0), 0, 0);<br>keybd_event(ord('C'), MapVirtualKey(ord('C'), 0), KEYEVENTF_KEYUP, 0);<br>keybd_event(VK_Control, MapVirtualKey(VK_Control, 0), KEYEVENTF_KEYUP, 0);<br>Edit1.PasteFromClipboard;<br><br>
W weisunding Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-16 #3 谢谢,除了ClipBoard,还有别的办法吗?<br>我已给你分了,如果不用clipboard那就好了