how to get the exact mouse click position with support for variable screen resolution ?

Posted by javadahut on Stack Overflow See other posts from Stack Overflow or by javadahut
Published on 2010-05-31T04:52:43Z Indexed on 2010/05/31 5:02 UTC
Read the original article Hit count: 193

Filed under:

I'm writing a simple macro program: you record your mouse or keyboard movements, you save the file, and the program will run it for you on your pc computer.

however, the situation is, what if the file is run on a laptop where the resolution is smaller? what if the file is to be run on a web server where there is no monitor ?

ie) the button is clicked at position (x,y): 300,520 but the button will be at another location in a different monitor resolution.

How would you approach this problem ?

© Stack Overflow or respective owner

Related posts about macro