Created
August 16, 2011 19:01
Biolab auto-fire cheat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* cheap Biolab auto-firing cheat | |
* Shoot 10x per second without hitting the c key | |
* simply run this in your console | |
*/ | |
window.setInterval(function() { | |
// fire the "c" keydown event | |
var evt = document.createEvent("KeyEvents"); | |
evt.initKeyEvent("keydown", 1, 1, null, false, false, false, false, 67, 0); | |
document.dispatchEvent(evt); | |
// biolab / impact expects an keyup afterwards | |
evt = document.createEvent("KeyEvents"); | |
evt.initKeyEvent("keyup", 1, 1, null, false, false, false, false, 67, 0); | |
document.dispatchEvent(evt); | |
}, 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment