Jump to content

How to know mouse position relative to an image


N4rk0
 Share

Recommended Posts

I have in image inside an autoit Gui , when i click on image i would like to get mouse position relative to the image.... I thought to get first mouse absolute position , then the image position and dimensions ( i need them for other things ) and finally calculate relative coordinates....ok but i 'm not able to find image position , if i use ControlGetPos it always return 0,0,0,0 .

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...