Skip to content

Commit

Permalink
Remove freakout again.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderson1993 committed Nov 27, 2018
1 parent ecd5954 commit b181561
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thorium-kiosk",
"version": "2.0.0",
"version": "2.0.0-beta2",
"description": "A client application for Thorium",
"main": "src/index.js",
"scripts": {
Expand Down
42 changes: 21 additions & 21 deletions src/helpers/freakout.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
var robot = require("robotjs");
//console.log(process.version);
module.exports = function() {
// Speed up the mouse.
robot.setMouseDelay(2);
// var robot = require("robotjs");
// //console.log(process.version);
// module.exports = function() {
// // Speed up the mouse.
// robot.setMouseDelay(2);

var twoPI = Math.PI * 2.0;
var screenSize = robot.getScreenSize();
var height = screenSize.height;
var width = screenSize.width;
var counter = 0;
// var twoPI = Math.PI * 2.0;
// var screenSize = robot.getScreenSize();
// var height = screenSize.height;
// var width = screenSize.width;
// var counter = 0;

moveMouse();
function moveMouse() {
counter++;
if (counter > 10) return;
x = Math.random() * width;
y = Math.random() * height;
robot.moveMouse(x, y);
setTimeout(moveMouse, 20);
}
};
// moveMouse();
// function moveMouse() {
// counter++;
// if (counter > 10) return;
// x = Math.random() * width;
// y = Math.random() * height;
// robot.moveMouse(x, y);
// setTimeout(moveMouse, 20);
// }
// };

// module.exports = function() {};
module.exports = function() {};

0 comments on commit b181561

Please sign in to comment.