Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Silent WebBrowser ::: Run WebBrowser silently in the background (beginner friendly)

Silent Webbrowser
[Image: c6pmLqL.gif]

Run the webbrowser in the background. Pretty straightforward with proper multi-threading and delegated so your application can do other work while the webbrowser is working.

Download:
http://ge.tt/186Syds/v/0?c (vs12)
Wait, why would you want to use a webbrowser control?
[Image: Syr3DlV.png]
Its nice you want to release projects but you should only do so if you actually know what you are doing. This line is just laugh worthy "with proper multi-threading and delegated ", I suggest you learn how controls work before making any thing else. A browsers Navigate is an Async call any way which means it's performed on a secondary thread. You cant thread a browser you silly boy.

WTF is this,

[Image: 741d8ca3ab0ac97bb5dcaadce15a8b92.png]

Why are you forcing all events be processed when there is no need? The control will be disposed of when it leaves it's scope. Why on earth do you start your variables with the former naming conventionName at local scope? It was previously class scope at best any way. You then declare class level variables m and also dim. You follow no guidelines.

Why are you passing an array of object simply holding a Boolean and a string, did you learn to code off the back of a cereal box?

You're using a function that returns a string "ok" for what purpose? Do you understand what functions are for. I hope no One ever follows some thing this bad.
Wow... look, the vb6 kid is talking.

Move along, the code is too advanced for you.

Also on that async thing and webbrowser's can't be threaded. I just did it so you make me a sandwich bitch.

(Sep 21, 2013 03:53 AM)gigajew Wrote:  Wait, why would you want to use a webbrowser control?

It's great for allot of purposes, there's also people asking for this kind of solution.
(Sep 21, 2013 05:07 AM)Mike Tyler Wrote:  Wow... look, the vb6 kid is talking.

I guess the code is too advanced for you, move along.

It's great for allot of purposes, also there are some people asking for this kind of solution.

Anyways ident is right when he tells you that

PHP Code

<?php 
do while webbrowser.readystate <> webbrowser.readystate.complete
application
.doevents
Loop 
this is shit.

just never use application.doevents in a loop.
god sake man, it's in a thread. gimme me a break.

the worst thing happening with loops is that I doevent your mom.
Listen, you cant thread a browser. The page will also be loaded on the UI and the request call(navigate) on a secondary thread. All you are doing is creating a new thread to call a secondary thread. Read MSDN WebBrowser.Navigate Method

Navigate asynchronously to the document at the specified Uri.

Why should i give you a break when you post a loud of crap up that other members might follow.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by NobleSep 2, 2024 12:45 AM 13 327 Sep 2, 2024 12:45 AM
Last Post: Tha Sneak
[Java] by SIM-2015410Aug 26, 2021 04:29 AM 140 22,582 Aug 26, 2021 04:29 AM
Last Post: skhackit
[C] by ConcentratedNagaJan 18, 2021 10:51 PM 0 154 Jan 18, 2021 10:51 PM
Last Post: ConcentratedNaga