Split and Macro

E is split, Q is W macro

< Σχολιασμός για τον κώδικα Split and Macro

Αναφορά: Εντάξει - ο κώδικας λειτουργεί αλλά έχει σφάλματα

Deleted user 38339
§
Δημοσιεύτηκε: 17/05/2016
Επεξεργάστηκε: 17/05/2016

Set Interval Issue

Hi, your script looks pretty well designed and probably works fine but this part:

SplitInterval = setInterval(function() {
$("body").trigger($.Event("keydown", {
keyCode: 32
}));
$("body").trigger($.Event("keyup", {
keyCode: 32
}));
}, 0);

You are setting an interval with a delay of 0 milliseconds, which means this anonymous function runs all the time. It just keeps looping over and over, and as soon as it finishes, it runs again.

I would suggest changing the delay to something more, probably 25 milliseconds or above.

Other than that it's a well-made script! :)

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.