Better HN
topnewbestaskshowjobs
Log inSign up

varyform

9 karma · joined Mar 11, 2014 (12y ago) · 2 submissions

Submissions

comment 12y ago · link · parent

function press(key) { var eventObj = document.createEvent("Events"); eventObj.initEvent("keydown", true, true); eventObj.which = key; document.dispatchEvent(eventObj); }

for (y=0; y<=1000; y++) { press(39); //right press(40); //down press(37); //left press(40); //down }

this gave me 1024 in couple of tries :D http://i58.tinypic.com/am9sh4.png