Main Site login Signup

webcontrol selection copy

Hi there,

today i started using awesomium (in VS 2010 Express .Net framework 4.0 C#), because the older webbrowser control did no longer load the website i needed it to load. Not sure why, it worked in the past (in the meanwhile i installed windows 10). So from today i use awesomium.

I managed to use a webcontrol and i loads the page, which didn't load in .net webrowser. The website works cross-domain. I request a .html page (on domain A), which has an iframe (name it iF_1) on it. The iF_1 loads a page from another domain (B). Within that page, i find another iframe (iF_2). It loads pages on the same domain.

The real thing i wanna do: get the displayed text (might be copied to clipboard) from the contents of iF_2 (the iFrame on the lowest level). I guess its ok to get the displayed text from the first iFrame (iF_1). i used loadingframecompleted to detect the right frame/url to load, to get the text of.

I cannot get the copy to work. I tried with webviews, webcontrol (only here the selectall() worked, but not the copy).

I guess i miss some essential/necessary things in my quick and dirty code... Otherwise i guess, it would have worked, reading the documentation.

Can someone give me some advise, to do the actions in an good order.

BTW: the inner iframe (iF_2) has 100% width and height, within iF_1 (which had 650 w * 1400 h). It can be that not all text which need to be selected, is visible on the screen, so that i need to scroll. But i think its not that important to note, because selectall() worked well.

asked Sep 09, 2016 at 05:02 PM avatar image ttvheerlen 0
more ▼
(comments are locked)
10|1100 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.