From 3cfee5cce60df0d35feb0cfe381e2f768ab3fa3f Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Thu, 15 Sep 2022 16:46:23 +0000 Subject: [PATCH] basic tooling Co-authored-by: sigonasr2 --- sig | 2 +- src/sig/JavaProjectTemplate.java | 21 --------------------- src/sig/PEWCopyTool.java | 27 +++++++++++++++++++++++++++ utils/.updateDirectories | 1 + utils/md5 | 4 ++-- 5 files changed, 31 insertions(+), 24 deletions(-) delete mode 100644 src/sig/JavaProjectTemplate.java create mode 100644 src/sig/PEWCopyTool.java diff --git a/sig b/sig index 605eed4..8795269 100755 --- a/sig +++ b/sig @@ -2,7 +2,7 @@ export AUTO_UPDATE=true source utils/define.sh -define PROJECT_NAME "JavaProjectTemplate" +define PROJECT_NAME "PEWCopyTool" define PROJECT_DIR "src/sig" define MAIN_CLASS "sig.${PROJECT_NAME}" define OUT_DIR "bin" diff --git a/src/sig/JavaProjectTemplate.java b/src/sig/JavaProjectTemplate.java deleted file mode 100644 index ac5ae34..0000000 --- a/src/sig/JavaProjectTemplate.java +++ /dev/null @@ -1,21 +0,0 @@ -package sig; - -import javax.swing.JFrame; -import sig.engine.Panel; - -public class JavaProjectTemplate { - public static final String PROGRAM_NAME="Sig's Java Project Template"; - public static void main(String[] args) { - JFrame f = new JFrame(PROGRAM_NAME); - Panel p = new Panel(f); - - p.init(); - - f.add(p); - f.setSize(1280,720); - f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - f.setVisible(true); - - p.render(); - } -} diff --git a/src/sig/PEWCopyTool.java b/src/sig/PEWCopyTool.java new file mode 100644 index 0000000..6dbf08a --- /dev/null +++ b/src/sig/PEWCopyTool.java @@ -0,0 +1,27 @@ +package sig; + +import java.awt.AWTException; +import java.awt.Robot; +import java.awt.event.KeyEvent; + +public class PEWCopyTool { + public static final String PROGRAM_NAME="PEW Copy Tool"; + public static void main(String[] args) { + Robot r; + try { + r = new Robot(); + //SHIFT+Down 15 times. + r.setAutoDelay(25); + r.keyPress(KeyEvent.VK_SHIFT); + for (int i=0;i<15;i++) { + r.keyPress(KeyEvent.VK_DOWN); + r.keyRelease(KeyEvent.VK_DOWN); + } + r.keyRelease(KeyEvent.VK_SHIFT); + r.keyPress(KeyEvent.VK_CONTROL); + r.keyPress(KeyEvent.VK_C); + } catch (AWTException e) { + e.printStackTrace(); + } + } +} diff --git a/utils/.updateDirectories b/utils/.updateDirectories index 0c078d1..56274ea 100644 --- a/utils/.updateDirectories +++ b/utils/.updateDirectories @@ -1,4 +1,5 @@ Java/ C/ +C++/ scripts/ utils/ \ No newline at end of file diff --git a/utils/md5 b/utils/md5 index b8c2ada..349fa70 100644 --- a/utils/md5 +++ b/utils/md5 @@ -1,4 +1,4 @@ define.sh:3ecab0dffe2adfb950f3eb7c7061b750 - main.sh:4e6e9f0650ec790ce2c4364db94f0caa - -search.sh:81d08f5ff48e8a44b5f68387d426da05 - -.updateDirectories:fa5e95db12be22ae8aed7ecbc560e38c - +search.sh:30e1842e9a13452ea883bb6516d28e1c - +.updateDirectories:971afb892e8280cb4c9ad43fb72a46a0 -