Skip to content

Instantly share code, notes, and snippets.

@rodneyrehm
Created August 16, 2011 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodneyrehm/1149857 to your computer and use it in GitHub Desktop.
Save rodneyrehm/1149857 to your computer and use it in GitHub Desktop.
Biolab auto-fire cheat
/*
* 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