Skip to content
Snippets Groups Projects
Commit af78875d authored by apvrille's avatar apvrille
Browse files

Mouse renamed to robot

parent a5cc3b3e
No related branches found
No related tags found
No related merge requests found
...@@ -84,19 +84,19 @@ public class Mouse extends Command { ...@@ -84,19 +84,19 @@ public class Mouse extends Command {
} }
public String getCommand() { public String getCommand() {
return "mouse"; return "robot";
} }
public String getShortCommand() { public String getShortCommand() {
return "m"; return "r";
} }
public String getUsage() { public String getUsage() {
return "mouse <subcommand> <options>"; return "robot <subcommand> <options>";
} }
public String getDescription() { public String getDescription() {
return "Can be used to perform mouse actions in TTool"; return "Can be used to perform actions with a mouse/key robot in TTool";
} }
...@@ -288,6 +288,7 @@ public class Mouse extends Command { ...@@ -288,6 +288,7 @@ public class Mouse extends Command {
if (robot == null) { if (robot == null) {
try { try {
robot = new Robot(); robot = new Robot();
robot.setAutoDelay(50);
} catch (AWTException e) { } catch (AWTException e) {
return Interpreter.ROBOT_EXCEPTION + ": " + e.getMessage(); return Interpreter.ROBOT_EXCEPTION + ": " + e.getMessage();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment