AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

using the height/width of current window

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
netboom



Joined: 06 Jul 2008
Posts: 10

PostPosted: Sun Jul 06, 2008 12:00 pm    Post subject: using the height/width of current window Reply with quote

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
View user's profile Send private message
Wouther



Joined: 01 May 2007
Posts: 78
Location: The Netherlands

PostPosted: Sun Jul 06, 2008 2:09 pm    Post subject: Reply with quote

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. Razz
_________________
Printing css/html-formatted text
Back to top
View user's profile Send private message
n-l-i-d
Guest





PostPosted: Sun Jul 06, 2008 2:20 pm    Post subject: Reply with quote

And don't forget CoordMode
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group