Home > OS >  Get Windows can be input controls (such as browser input box, notepad) has the scope of input text
Get Windows can be input controls (such as browser input box, notepad) has the scope of input text

Time:03-30




Is I want to get the range of the red circle, and then figure out whether the coordinates of the mouse to click on these words,



Solution a: gettextextentpoint,

Not to use, and on the browser can't obtain the

Scheme 2: opencv

Determine whether can be input state, is CTRL + A to future generations will become angry (basic is the blue) then the color of the area is extracted by opencv on whether the mouse click on the coordinates in the area, do not know will work

Solution 3:

To simulate click and then shift +, CTRL + c to copy the see clipboard contents to have any words on behalf of the mouse point position is,

But if not on the word lose cursor (lose input state), because the simulated click away from the input box,



Like it if I want to write an "a" on the word I write he is selected to do not write "a" is input on the word,

He is how to determine the



Or,, what good method is I ask

CodePudding user response:

Get the text? Only according to the element extraction
  • Related