Answer the question
In order to leave comments, you need to log in
How to know if a button press has ended?
All good.
Tell me please.
There is a script. In the process of work, he clicks on the site on two buttons and then on the script. The code is something like this:
$('.read_htable input[name=bet]').val(parseFloat(current_bet).toFixed(8));
button= callnetwork(); //алгоритм, определяющий на какую из кнопок нажимать
var readPlayBtn = $('.read_htable .clreadPlay')[button];
readPlayBtn.click();
Answer the question
In order to leave comments, you need to log in
The click itself happens exactly at the moment of execution of the line readPlayBtn.click(); but sending data, receiving a response, or whatever the button does there, placing a bet ... occurs with a delay. Those. here it would be more logical not to emit a button click, but to execute this request directly from js, get a response and go further through the script.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question