home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Netflix plugin (NetflixAlpha)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="te3hpurp" data-source="post: 1065221" data-attributes="member: 82806"><p>Im doing it like this:</p><p></p><p>[CODE] private void webBrowser1_DocumentCompleted(System.Object sender, WebBrowserDocumentCompletedEventArgs e)</p><p> {</p><p> if (this.webBrowser1.ReadyState != WebBrowserReadyState.Complete){</p><p> return;}else{</p><p> System.Diagnostics.Debug.Print("COMPLETED !!");</p><p> if (e.Url.Equals(webBrowser1.Url))</p><p> {</p><p> HtmlDocument document = webBrowser1.Document;</p><p> </p><p> </p><p></p><p> foreach (HtmlElement ele in document.All)</p><p> {</p><p> // elementofpage.Add(ele);</p><p> if (ele.InnerHtml != null)</p><p> {</p><p> if (ele.GetAttribute("className").ToString().Contains("ng-binding"))</p><p> {</p><p> profiles.Add(ele);</p><p> }</p><p> }</p><p> }</p><p> if(profiles.Count>0){</p><p> profiles[0].InvokeMember("click");</p><p> }</p><p>}</p><p>}</p><p>...............................................</p><p>[/CODE]</p><p></p><p>Of course in inside if(profiles.Count>0) there can be a checking of a username which is stored for example</p><p>in plugin settingas. I just click first one.</p><p></p><p></p><p>Br,</p></blockquote><p></p>
[QUOTE="te3hpurp, post: 1065221, member: 82806"] Im doing it like this: [CODE] private void webBrowser1_DocumentCompleted(System.Object sender, WebBrowserDocumentCompletedEventArgs e) { if (this.webBrowser1.ReadyState != WebBrowserReadyState.Complete){ return;}else{ System.Diagnostics.Debug.Print("COMPLETED !!"); if (e.Url.Equals(webBrowser1.Url)) { HtmlDocument document = webBrowser1.Document; foreach (HtmlElement ele in document.All) { // elementofpage.Add(ele); if (ele.InnerHtml != null) { if (ele.GetAttribute("className").ToString().Contains("ng-binding")) { profiles.Add(ele); } } } if(profiles.Count>0){ profiles[0].InvokeMember("click"); } } } ............................................... [/CODE] Of course in inside if(profiles.Count>0) there can be a checking of a username which is stored for example in plugin settingas. I just click first one. Br, [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Netflix plugin (NetflixAlpha)
Contact us
RSS
Top
Bottom