Name | Modified | Size | Downloads / Week |
---|---|---|---|
readme .txt | 2021-04-05 | 2.5 kB | |
ScreenCaptureImageTextAppLauncher.zip | 2021-04-05 | 77.3 kB | |
Totals: 2 Items | 79.8 kB | 0 |
Screen Capture Image Text App Launcher config.txt parameters: Define screen capture area Toggle the mouse position update using the button on the form Note the pixel locations for the top left, top right and bottom right Update the config.txt file with the measured values: Capture X pos - X location of top left area Capture Y pos - Y location of top left area Screen capture width - X position from top right mouse cursor value subtracted from X position on top left cursor value Screen capture height- Y position from bottom right mouse cursor value subtracted from Y position on top right cursor value Specify interval in seconds to create and process screen captures, has been tested successfully with value set at 1 Specify the capture file location and name, image extension can be png, jpg, or bmp To test the operation of the app, load a correctly completed config.txt file, before the timer elapses disable the timer by unchecked the bottom option. You can them use the “take screenshot” to create and process a single image. As already indicated this app uses the TESSERACT OCR engine to analyse the screen capture. It must exist in your PATH environment to work correctly. After saving a screen capture the app runs a hidden command prompt which has the following context: tesseract capture.png capture This will result in the analysed capture text being saved to capture.txt. Once saved as a text file the existence of the “triggers.txt” file is checked. If present the word(s) in the file to the left of the first comma are searched for in the capture.txt file. If a match is found a process is ran for the application in the second position on the comma-delimited line. The third parameter on the matching line is passed as arguments for the process. In the example I am playing an audio file through VLC if the trigger words ##cheer or ##roar are detected. The application by default overwrites the created image/text file on each subsequent capture, this can be disabled by unchecking the respective checkbox. When overwrite is set the specified capture filename before the extension is appended by the digit zero. When overwrite is disabled the numeric value increases on each capture. The remaining checkbox changes the top level state of the application window, by default it is active, when set it will remain above other windows and can only be minimised. When unchecked the window is no longer set as top level and will move behind other windows.