Jump to content
Sign in to follow this  
N4rk0

How to know mouse position relative to an image

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 .

Share this post


Link to post
Share on other sites

PS

I found what i was mistaking ....i though that ControlGetPos give coordinates absolute and not relative to window containing the control.....so when it gave 0,0 i though there was an error...

:)

Sorry

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...