How can I mimic CTRL+A, CTRL+C in WebBrowser Control through COM or JavaScript? -


how can mimic ctrl+a, ctrl+v in webbrowser control automatically via com?

alternatively, there way of simulating behaviour using javascript?

i looked on , seems way put data clipboard use setdata() method of clipboarddata object, end html being interpreted text. need put entire webpage clipboard can pasted ms word.

this answer discovered op , posted update question. moving here semantics.

here's solution in javascript (can used through com well):

window.document.execcommand('selectall',true); window.document.execcommand('copy',true); window.document.execcommand('unselect',true); 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -