Answer the question
In order to leave comments, you need to log in
How to simulate a click? How to intercept and process data passing through web sockets?
Hello, how can I use event in such a way to implement artificial click ?
There is some game, I have been trying to write a bot for a long time.
1 - Platform
I will describe the platform on which it all works.
The entire Front-end part works on CANVAS + WEBGL , so using DOM to simulate a click will not work :( All data comes and goes through sockets (SockJS). I managed to find the part of the script that is responsible for sending and receiving data. All data comes and are sent in the form of JSON.I think before sending it somehow filter the data to those that I need.(for example: If sent by clicking "Hit in the head" then I rearrange the data to "Hit in the balls:)".Do you think this option is not too primitive?
In any case, I need to find an entry point, and start somehow generating data in the form of JSON to send to the server.
Question: Can I send my data to the server through the console or by changing main.js?
The main question is to
simulate a click, and then process it all before sending it to the server, I think that these are crutches !
Here I have little knowledge in web sockets, what do you think, is it possible <<without crutches>> to make requests to the server?
Just take and without touching any event and CANVAS send data to the server?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question