Created
August 11, 2015 10:01
-
-
Save octalmage/1a773bb340e75531a8dc to your computer and use it in GitHub Desktop.
RobotJS - Automate Alt+Tab.
This file contains hidden or 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
var robot = require("robotjs"); | |
var sleep = require("sleep"); | |
robot.keyToggle('tab', true, 'command'); | |
robot.keyTap('tab', 'command'); | |
sleep.sleep(2); | |
robot.keyTap('tab', 'command'); | |
sleep.sleep(2); | |
robot.keyTap('tab', 'command'); | |
sleep.sleep(2); | |
robot.keyTap('tab', 'command'); | |
robot.keyToggle('command', false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment