repeats / Repeat
- вторник, 4 октября 2016 г. в 03:14:09
Java
Repeat yourself with some intelligence. This, if used correctly, can improve your productivity by 2x - 5x.
Tired of clicking the same spot on your screen again and again? Got bored of typing the same phrase over and over again during your day? Repeat yourself with some intelligence.
Just download the latest version, put the jar in a separate directory, and run it with java. That's it! You may need appropriate privileges since Repeat needs to listen to and/or control the mouse and keyboard.
It does not make sense to listen to keyboard and mouse events in a headless system. How can you move your mouse if you have no screen? What would typing a key mean in such system?
You can change global hotkeys: In menu Settings --> Hotkey
Record: Press record (default hotkey F9) to start recording and stop at any time by pressing the same button again (or press default recording button F9)
Replay: Press replay (default hotkey F11) to start replaying and stop at any time by pressing the same button again (or press default replay button F11)
Compile your code and play it: the buttons are right under the record and replay section. (F12 for play/stop compiled code)
Manage your tasks: using the buttons on the right hand side of the windows to Add, Override, Remove or Reorganize (move up/down, change group) your tasks.
Change hotkey for your task: just left click on the hotkey column of your task's row in the table and input the new hotkey
Enabling/disabling task: click on the column in the table that shows enabled/disabled.
By default, pressing escape will interrupt the running tasks. However, you can disable this feature in Setting --> Halt tasks by escape.
It's the button to manage task group.
Manage task group: click on the button next to Task group on the top right corner at any time to manage the task group.
Change Java class path: Settings --> Set compiler path. Choose the directory where your JDK is installed (not JRE). For example, mine is at C:\Program Files\Java\jdk1.8.0_25 More explanation: Usually the jar will get started by JRE. Obviously you can't compile anything with JRE.
Similar to Java, you need to identify where the python interpreter is at. First switch to Python using Tool --> Compiling Language --> Python. Then configure python interpreter path using Settings --> Set compiler path. For example in my Linux machine my python interpreter is at /usr/bin/python
You need to start Python submodule first. Go to Tool --> Native modules and click on the python IPC line, then click on the play button to start it. You can achieve the same thing by just restarting the application. Python module will be automatically started if you've configured python interpreter correctly.
C# module is disabled if you are on a non Windows OS. Nothing from C# module will get started.
At the time I was desperately in need of a tool to liberate myself from the repetitive tasks at work. I could have used JavaFX but I would take more time since I was not that proficient at JavaFX.
This application listens on your mouse and keyboard events as well as allowing you to simulate mouse/keyboard events. If I could do such thing from a web browser, some hackers must have got your personal information, passwords, bank account number by now.
It's coming. I will get it done when I have time.
/* Write your code beneath "Begin generated code" */
controller.blockingWait(100); //To make sure the hotkey has been fully released
key.type("100! = ");
for (int i = 1; i <= 100; i++) {
key.type(i + "");
if (i != 100)
key.type(" * ");
}