| View previous topic :: View next topic |
| Author |
Message |
netboom
Joined: 06 Jul 2008 Posts: 10
|
Posted: Sun Jul 06, 2008 12:00 pm Post subject: using the height/width of current window |
|
|
Hi, I want to move the mouse on top of button in the current window. The problem is the window can resize but it keeps its aspect ratio. I figured the best way get around this was to work with percentages so its always relative to the current window and whatever the hight/width of the selected window is.
I'm not sure how to access the hight/width value of the current window so i can work on them is there some sort of function for this that i can assign to a variable?
Thanks,
Net. |
|
| Back to top |
|
 |
Wouther
Joined: 01 May 2007 Posts: 78 Location: The Netherlands
|
Posted: Sun Jul 06, 2008 2:09 pm Post subject: |
|
|
Browse the help file for WinGetActiveStats.
Edit: You can retrieve the position and size of the button with ControlGetPos. Use Window Spy (installed with Autohotkey) to find out what the control's class is.  _________________ Printing css/html-formatted text |
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Sun Jul 06, 2008 2:20 pm Post subject: |
|
|
| And don't forget CoordMode |
|
| Back to top |
|
 |
|