Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void run() {
- try {
- while (true) {
- Thread.sleep(1L);
- if (!this.this$0.isToggled()) {
- continue;
- }
- if (!this.this$0.isHeld()) {
- continue;
- }
- final long CPSDelay = this.this$0.generateCPSDelay();
- if (this.this$0.Settings_Jitter) {
- if (this.this$0.getJitterTime() != null) {
- if (this.this$0.getJitterTime().hasPassed()) {
- this.this$0.setJitterTime(new Time(20L));
- this.this$0.jitter();
- }
- }
- else {
- this.this$0.setJitterTime(new Time(20L));
- }
- }
- if (this.this$0.getPressTime() != null) {
- if (this.this$0.getPressTime().hasPassed()) {
- this.this$0.setPressTime(new Time(CPSDelay));
- this.this$0.setReleaseTime(new Time(CPSDelay / 2L - this.this$0.rand.nextInt(10) + 1L));
- this.this$0.setSkip(true);
- this.this$0.robot.mousePress(16);
- }
- }
- else {
- this.this$0.setPressTime(new Time(CPSDelay));
- this.this$0.setSkip(true);
- this.this$0.robot.mouseRelease(16);
- }
- if (this.this$0.getReleaseTime() == null || !this.this$0.getReleaseTime().hasPassed()) {
- continue;
- }
- this.this$0.robot.mouseRelease(16);
- this.this$0.setReleaseTime(null);
- }
- }
- catch (Exception e) {
- e.printStackTrace();
- }
- }
- })).start();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement