Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HowTo force Richtextctrl to react on keyboard '{CTRL+V}'
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00850053
Message ID:
00850060
Views:
31
Will it somehow differ from oShell = CreateObject("WScript.Shell"), oShell.sendkeys(to window) that I already tryed?
Not quite sure how to send it to control (is control.setfocus, and send to window enough?).

>Hi Yuri,
>
>I would try to send 'CTRL+V' directly to control using SendMessage Win API.
>
>>I would like to programmatically populate RTFcontrol.text from clipboard accepting text containing various languages typed in other application, like NotePad, Word or Excel (so plain control.text=".... " may not work here).
>>
>>For now I can do it only manually when setting focus on the control and pressing CTRL+V. But the command
>>
>>keyboard '{CTRL+V}'
>>
>>does not work even in the RTFcontrol.click or RTFcontrol.gotfocus events.
>>I tried various settings of RTFcontrol.autoverbmenu without success.
>>
>>Your opinion and ideas will be highly appreciated.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform