AutoHotkey Community

It is currently May 26th, 2012, 8:48 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: July 6th, 2008, 12:00 pm 
Offline

Joined: July 6th, 2008, 9:19 am
Posts: 101
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 6th, 2008, 2:09 pm 
Offline

Joined: May 1st, 2007, 8:36 pm
Posts: 83
Location: The Netherlands
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. :P

_________________
Printing css/html-formatted text


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 6th, 2008, 2:20 pm 
And don't forget CoordMode


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: kkkddd1, poserpro and 57 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group