Open libertyteeth opened 7 months ago
I have implemented basic functionality: detect a single-line box around the mouse cursor.
This addresses Pull Request #3418 (I am new at this, please guide me if I’m making mistakes).
Invoke with "flameshot gui --box", while the mouse cursor is inside a box, preferably over a background color.
I changed it to "box" instead of "post" as that's more general.
This is my first "large" contribution so please let me know if there's anything I missed? Thanks! (I mentioned in the Pull Request comment that commenting here would close the issue; now I see they're two separate buttons, one doesn't influence the other. So, am now commenting on the Issue/enhancement request.)
ISSUES:
Note that I have not translated any strings that I added into other languages.
I have not updated documentation.
I have not tested on multiple monitors.
FUTURE:
Want to add the two features I mentioned in Issue #3416: allow for rounded corners by ignoring a percentage, or a certain number of pixels, of the ends of the lines being detected; and, an option to keep detecting until a border of a certain size has been found.
Want to add the "background color detection" mentioned in Issue #3416: basically, count the pixels of each different color inside the box being checked, and the highest count is the background. (For efficiency: save the result and then only add the "box/lines just inside the four edges" to the calculation, similar to how the line-detection code only checks for the first and last pixels of an already-detected line as it grows in place.)
Want to add another icon/button, so the user can click that, then click anywhere on the screen, and have it perform the box detection and auto-select a region. In other words, freeze the screen first, then select. One use case is: hover over a link which causes a popup to appear, and the user wants to capture that popup. Trying to move the mouse inside the box to be captured, though, moves the mouse off the link, and the popup goes away. So to capture those, will need this additional feature.
GENERAL ISSUES:
Feature Description
I see several other issues that describe selecting an entire window:
5 #334 #1816 #1814
My use case is to select the entire post, in a forum. I am perhaps halfway through coding the solution. My idea of usage: