• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[C#] Web events

Status
Not open for further replies.

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
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:

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
Yup, here I am.

5vceu9.png
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
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).
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
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.
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
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.
Top