Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
165
rated 0 times [  172] [ 7]  / answers: 1 / hits: 42516  / 11 Years ago, fri, march 29, 2013, 12:00:00

Can I somehow get precise screen coordinates (relative to top left corner of the screen) of a DOM object. Through NPAPIFireBreath or JavaScript. (Need this for plugin, that I'm writing
with FireBreath)


More From » c++

 Answers
8

you move cursor to somewhere of the page ,and make a click event.(find the window,then GetWindowRect ,caculate a sutable position) then you can catch the event,record clientX and clientY. By this ,you build a bridge between two different coordinate system.


[#79243] Thursday, March 28, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
austynp

Total Points: 505
Total Questions: 118
Total Answers: 106

Location: Tajikistan
Member since Sun, Aug 29, 2021
3 Years ago
austynp questions
;