Co-authored-by: sigonasr2 <sigonasr2@gmail.com>

main
sigonasr2 3 years ago
parent 4fc2b4e5db
commit 58a4d556af
  1. BIN
      ArcadeScreenshotHandler.jar
  2. BIN
      bin/screenshot.png
  3. BIN
      screenshot.png
  4. 4
      scripts/jar.sh
  5. 4
      scripts/md5
  6. 7
      src/sig/ArcadeScreenshotHandler.java

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 386 KiB

After

Width:  |  Height:  |  Size: 223 KiB

@ -10,7 +10,7 @@ ORIGINAL_LOC=$(pwd)
cd ${OUT_DIR}
jar cfm ${PROJECT_NAME}.jar ${ORIGINAL_LOC}/manifest sig
printf "\n\n\nRunning Program...\n\n"
java -jar ${PROJECT_NAME}.jar
java -jar ${PROJECT_NAME}.jar "$@"
mv ${PROJECT_NAME}.jar ${ORIGINAL_LOC}
cd ..
./scripts/clean.sh
./scripts/clean.sh

@ -1,5 +1,5 @@
build.sh:de32fdf9f3ce9eb5d4ea9902ee48dbe0 *-
clean.sh:8aec15e447257f1c3a4e978f1b56a78e *-
commit.sh:a592fe2113538f8cf933907eeda13ddc *-
jar.sh:58c4f48f7e34425e55358a165a81c03b *-
commit.sh:21af1fa6f09d01679c9e11408967264a *-
jar.sh:62ce62bbb97d3f3856bcc9b0ad34083c *-
lean.sh:3be7b8b182ccd96e48989b4e57311193 *-

@ -1,5 +1,6 @@
package sig;
import java.io.File;
import java.io.IOException;
import java.nio.file.Path;
import java.awt.image.BufferedImage;
@ -37,10 +38,12 @@ public class ArcadeScreenshotHandler {
@Override
public void actionPerformed(ActionEvent e) {
System.out.println(e.getActionCommand());
POSTRequest postRes = new POSTRequest("http://"+args[0]+"/uploadform.html",Path.of("..","screenshot.png"));
try {
BufferedImage img = CaptureScreen();
ImageIO.write(img,"png",new File("..","screenshot.png"));
POSTRequest postRes = new POSTRequest("http://"+args[0]+"/uploadform.html",Path.of("..","screenshot.png"));
System.out.println(((HttpResponse<String>)postRes.run()).body());
} catch (FailedResponseException e1) {
} catch (FailedResponseException | IOException e1) {
e1.printStackTrace();
}
playSound(Path.of("..","ding.wav"));

Loading…
Cancel
Save