[C#] Web events

Status
Not open for further replies.

Chaosy

Tutorial Reviewer
Level 41
Joined
Jun 9, 2011
Messages
13,289
Hello, I currently try to figure out a way to detect "events" that happen on a website. To do that I thought it would be easier if I coded my own browser which I have done now. Since logically I should have more controll of what happens inside the browser.

So now that I am in my own browser, am I able to detect when I press the submit new thread button for example? Or rather, can you show me how?
 
Last edited:
Yup, here I am.

5vceu9.png
 
Oh, I assume C# has an HTML rendering engine.

What exactly are you talking about though?
What does "detect events that happen on a website" mean?
If you mean that you have a server and you want to respond to requests (or spy on your clients), then XMLHttpRequest (aka AJAX) or WebSockets are your tools, and in this case it has nothing to do with C# (beside getting a WebSocket server).
 
You can make a GreaseMonkey script (or any other add-on that allows you to inject JavaScript code to pages), and add event listeners to all the event types.
This still has nothing to do with C# though.

Can you say what you're trying to do? Maybe I'll have something more useful to suggest. Right now I don't really understand your question.
 
C# isn't relevant to the World Wide Web in any way, so why would you be able to do anything with it?
Like I said, you can check out GreaseMonkey or other similar JavaScript injection add-ons, that should make your job as easy as making a small JS file which registers event listeners.
 
Status
Not open for further replies.
Back
Top