11-24-2007, 01:54 AM
Hi,
I would like to highlight text within a RichEdit20W field. After highlighting it, I would like to delete it - i.e. I am only highlighting it to be able to send a delete keystroke.
Anyway, everytime I do it, the appropriate text gets highlighted but then I get the following errors:
If I click "Retry", the text becomes unhighlighted and the dialog disappears. If I hit "Cancel", I get the following message:
When I press OK, the dialog goes away but the application of the RichEdit field doesn't close, though the text remains unhighlighted.
I hope this explanation helps and that there is a solution. In the meantime, I will research what Richedit20W means - I see you have previously referred to RichEdit and RichEdit20 but not RichEdit20.
Thanks,
Stuart
I would like to highlight text within a RichEdit20W field. After highlighting it, I would like to delete it - i.e. I am only highlighting it to be able to send a delete keystroke.
int handw=GetWinId(child("" "WindowsForms10.RichEdit20W.app.0.378734a" win("Sample App" "WindowsForms10.Window.8.app.0.378734a") 0x5))
RichEditHighlight handw "find this"
Anyway, everytime I do it, the appropriate text gets highlighted but then I get the following errors:
Quote:An Unexpected Error Occurred:
Exception has been thrown by the target of the invocation.
Click Retry or Cancel to terminate the application
If I click "Retry", the text becomes unhighlighted and the dialog disappears. If I hit "Cancel", I get the following message:
Quote:A fatal error occurred and the application will now terminate:
COM returned an unexpected error code: Details are RPC_E_CANTCALLOUT_ININPUTSYNCCALL
When I press OK, the dialog goes away but the application of the RichEdit field doesn't close, though the text remains unhighlighted.
I hope this explanation helps and that there is a solution. In the meantime, I will research what Richedit20W means - I see you have previously referred to RichEdit and RichEdit20 but not RichEdit20.
Thanks,
Stuart