|
Rank: Member Groups: Member
Joined: 1/14/2016 Posts: 28
|
since many website has Verification image it will different everytime we download it , so how get the picture on current page?..
|
|
Rank: Member Groups: Member
Joined: 1/14/2016 Posts: 28
|
in ie: private Image GetWebImage(WebBrowser WebCtl, HtmlElement ImgeTag) { HTMLDocument doc = (HTMLDocument)WebCtl.Document.DomDocument; HTMLBody body = (HTMLBody)doc.body; IHTMLControlRange rang = (IHTMLControlRange)body.createControlRange(); IHTMLControlElement Img = (IHTMLControlElement)ImgeTag.DomElement;
Image oldImage = Clipboard.GetImage(); rang.add(Img); rang.execCommand("Copy", false, null); Image numImage = Clipboard.GetImage(); try { Clipboard.SetImage(oldImage); } catch { }
return numImage; }
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,201
|
Hi,
We do not have any direct support to copy the image to clipboard. You can try to use EvalScript to perform similar action and see if it works. If the JavaScript code works in Chrome browser, then it should work for EO.WebBrowser.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 1/14/2016 Posts: 28
|
what a pity , in my search , only chrome 42 can do this, our product is chrome 41.., i hope we can update to the latest chrome kernel
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,201
|
Hi,
We are in the process of updating Chrome version. Our next release will be based on a newer Chrome engine.
Thanks!
|
|