Kevinkeith

Copy selected text in edge browser not working

4 posts in this topic

#1 ·  Posted

I have to grab text from a window in edge browser.

When I activate the window and send ^a and then ^c in Chrome -- text is highlighted and then copied into the clipboard.

When I activate the window and send ^a and then ^c in the edge browser  text is highlighted but not copied into the clipboard.

I verify this by going into notepad and trying to paste which works if the page was in chrome but does not if the page is in edge.

I tested this using the web page of the New York Times.

 

AutoItX3 x3 = new AutoItX3();
Clipboard.Clear();
x3.AutoItSetOption("WinTitleMatchMode", 2);

x3.WinActivate("The New York");
x3.WinWaitActive("The New York");

x3.Send("^a");
x3.Sleep(1000);
x3.Send("^c");

 

If I am missing something please let me know. Otherwise if you could give me some help on how to pullout the text from a page using the edge browser I would be very grateful.

Keith
 

 

 

 

Share this post


Link to post
Share on other sites



#2 ·  Posted

I seem to have no problem getting the text with the "^c".

Why must it be edge, if chrome works for you?

Share this post


Link to post
Share on other sites

#3 ·  Posted

The web site I need to grab info from does not work in chrome.

That web site has been undergoing a lot of revisions.  For several years it only worked in explorer 8.  Then it worked in 10 and 11 and chrome.  Then it did not seem to work at all in any browser. I thought it only worked in edge now but I have been testing some more and i see it now works in explorer 11 and I can grab the text from there.

I would like to know why I can't copy the selected text into the clipboard in the edge browser though.  You say it works for you -- can you tell me which version of the edge browser you are using?  Mine is:

Microsoft Edge 38.14393.0.0

Microsoft EdgeHTML 14.14393

Share this post


Link to post
Share on other sites

#4 ·  Posted

Microsoft Edge 25.10586.0.0

Microsoft EdgeHTML 13.10586

Hmmm yeah the version is properly why...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now