Skip to content

Commit a9e12ed

Browse files
committed
Add spaces before comments.
1 parent b4adaaa commit a9e12ed

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ If you need to build RobotJS, see the [building](#building) section. Instruction
4444
<p align="center"><img src="https://cldup.com/lugVjjAkEi.gif"></p>
4545

4646
```JavaScript
47-
//Move the mouse across the screen as a sine wave.
47+
// Move the mouse across the screen as a sine wave.
4848
var robot = require("robotjs");
4949

50-
//Speed up the mouse.
50+
// Speed up the mouse.
5151
robot.setMouseDelay(2);
5252

5353
var twoPI = Math.PI * 2.0;
@@ -65,26 +65,26 @@ for (var x = 0; x < width; x++)
6565
##### [Keyboard](https://github.com/octalmage/robotjs/wiki/Syntax#keyboard)
6666

6767
```JavaScript
68-
//Type "Hello World" then press enter.
68+
// Type "Hello World" then press enter.
6969
var robot = require("robotjs");
7070

71-
//Type "Hello World".
71+
// Type "Hello World".
7272
robot.typeString("Hello World");
7373

74-
//Press enter.
74+
// Press enter.
7575
robot.keyTap("enter");
7676
```
7777

7878
##### [Screen](https://github.com/octalmage/robotjs/wiki/Syntax#screen)
7979

8080
```JavaScript
81-
//Get pixel color under the mouse.
81+
// Get pixel color under the mouse.
8282
var robot = require("robotjs");
8383

84-
//Get mouse position.
84+
// Get mouse position.
8585
var mouse = robot.getMousePos();
8686

87-
//Get pixel color in hex format.
87+
// Get pixel color in hex format.
8888
var hex = robot.getPixelColor(mouse.x, mouse.y);
8989
console.log("#" + hex + " at x:" + mouse.x + " y:" + mouse.y);
9090
```

0 commit comments

Comments
 (0)