-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAction.java
43 lines (36 loc) · 1.12 KB
/
Action.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import java.util.*;
import java.io.*;
import java.awt.*;
import org.jnativehook.GlobalScreen;
import org.jnativehook.keyboard.NativeKeyEvent;
import org.jnativehook.keyboard.NativeKeyListener;
public class Action implements NativeKeyListener{
private static $$ $;
private static final Action A = new Action();
private Action(){
try {$ = new $$();
GlobalScreen.getInstance().addNativeKeyListener(this);
}catch(java.awt.AWTException e){}}
public static void main(String args[]){$.delay(2000);
A.main();
System.exit(0);
}
/*****Script*****/
void main()
{
recordedCode();
}
void recordedCode(){
$.press(27,767,$.Button1);
$.release(27,767,$.Button1);
$.press(416,499,$.Button1);
$.release(416,499,$.Button1);
$.press(1144,108,$.Button1);
$.release(1144,108,$.Button1);
}
public void keyPressed(NativeKeyEvent nke) {
if (nke.getKeyCode() == NativeKeyEvent.VK_F8) {
System.out.println("Process Aborted due to Interrupt.");
System.exit(0);
}
}public void keyReleased(NativeKeyEvent nke) {}}