N4rk0 Posted December 18, 2007 Share Posted December 18, 2007 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 More sharing options...
N4rk0 Posted December 18, 2007 Author Share Posted December 18, 2007 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now