Such as:
I have three text boxes on a web page, I want to get the cursor position, in the text box where the cursor (screen coordinates), which API function should be used? thank you
CodePudding user response:
The man called insertion operator, GetCaretPos
The cursor refers to "the mouse cursor"
CodePudding user response:
reference 1st floor dustpg response: that is called the insertion operator, GetCaretPos The cursor refers to "the mouse cursor" Thank you, my application background is like this: First get caret position in web page text box, and then simulate mouse click the three position, let the text box for focus, to write some values, Which API to use? CodePudding user response:
Basic is not possible, because the lz do not specify a browser, the realization of each browser, Hypothesis refers to Internet explorer, feasible, provided by Microsoft plug-in apis. The egde, but Microsoft has to support chorme extension, that is with IE make a clean break, IE only certainly will will be discard by Microsoft, Assuming that lz is refers to the web application, there is a c/c + + area. Should go to js area CodePudding user response:
reference dustpg reply: 3/f basic is not possible, because the lz do not specify a browser, the realization of each browser, Hypothesis refers to Internet explorer, feasible, provided by Microsoft plug-in apis. The egde, but Microsoft has to support chorme extension, that is with IE make a clean break, IE only certainly will will be discard by Microsoft, Assuming that lz is refers to the web application, there is a c/c + + area. Should go to js area You have the Microsoft's new products, you have lost more than half of customer source, Back to LZ: That will tell you everything! CodePudding user response:
reference 4 floor qq_34453988 response: Quote: reference dustpg reply: 3/f Basic is not possible, because the lz do not specify a browser, the realization of each browser, Hypothesis refers to Internet explorer, feasible, provided by Microsoft plug-in apis. The egde, but Microsoft has to support chorme extension, that is with IE make a clean break, IE only certainly will will be discard by Microsoft, Assuming that lz is refers to the web application, there is a c/c + + area. Should go to js area You have the Microsoft's new products, you have lost more than half of customer source, Back to LZ: That will tell you everything! May be different areas, to listen to Microsoft said win10 is the last generation of Windows, don't even plan to support the Windows 7, Microsoft is out of its use its out dx12 dx12, steam on statistical win10 has been more than 7, game players prefer new things, General enterprise visual need to old customers, so need to old technology CodePudding user response:
http://www.autohotkey.com CodePudding user response:
Let the text box gains focus SetFocus https://msdn.microsoft.com/en-us/library/windows/desktop/ms648402%28v=vs.85%29.aspx CodePudding user response:
reference 1st floor dustpg response: that is called the insertion operator, GetCaretPos The cursor refers to "the mouse cursor" The master answer! The small white to find the function of API to find for a long time ~ thank you very much!!!!!!