https://github.com/rabestro/screen-taker
The homework for an intensive Java webinar. A multithread program that takes desktop screenshots in background and send them to the Dropbox server.
https://github.com/rabestro/screen-taker
awt-graphics dropbox dropbox-api dropbox-client dropbox-server dropbox-v2 executor-service homework multithread multithreading screenshot student-project webinar
Last synced: 8 months ago
JSON representation
The homework for an intensive Java webinar. A multithread program that takes desktop screenshots in background and send them to the Dropbox server.
- Host: GitHub
- URL: https://github.com/rabestro/screen-taker
- Owner: rabestro
- License: mit
- Created: 2020-08-11T22:45:06.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T13:33:57.000Z (almost 3 years ago)
- Last Synced: 2024-12-28T05:25:22.098Z (9 months ago)
- Topics: awt-graphics, dropbox, dropbox-api, dropbox-client, dropbox-server, dropbox-v2, executor-service, homework, multithread, multithreading, screenshot, student-project, webinar
- Language: Java
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Java Intensive Webinar (2020-08-10)
A multithread program that takes desktop screenshots in background and send them to the Dropbox server.
## Program of webinar
- Exception Handling.
- Threads and Processes.
- Starting and stopping streams.
- Connecting external libraries.
- Sending files to a remote server.### Homework task
- The program should start a thread that takes a screenshot every 5 seconds
- After obtaining the screenshot a new separate thread should upload the image to the Dropbox server.
- The uploading of images have to be in dedicated thread
- File names must be in the format .png### Installation
- Obtain your own DropBox Access Token
- Copy your token to `screentaker.properties` file
- Tune any other properties like interval (in milliseconds), formatter or image type
- Tune logging properties in `logging.properties` file.### Run the program
Open the terminal and type a command:
```
java -jar ScreenTaker-1.1.0.jar
```
If you prefer to run the program in the background (linux) add an ampersand in the end:
```
java -jar ScreenTaker-1.1.0.jar &
```