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 

Negative X and Y coordinates

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
guivho



Joined: 04 Jun 2005
Posts: 26
Location: Lokeren, Belgium

PostPosted: Fri Jun 17, 2005 8:23 am    Post subject: Negative X and Y coordinates Reply with quote

It would be nice if one could specify negative coordinates for mouseclicks.
A negative X value, e.g. -10 would click 10 pixels from the right end side of the target window, a negative Y would count from the bottom up rather than top down.

This would allow for automatic adjusts of coordinates when the target window is resized. Some click points are locked to the right of a window (e.g. the hide button of trillian); other buttons are anchored to the bottom of windows.

Currently I use spy to compute the distance between the right and/or bottom end and the target click spot. In the script I get the width and height, decrement them by the distances which I got from spy, and use the result to do the click.

This works perfectly well, but maybe it would be cleaner if one could immediately specify a negative coordinate.

This is just an idea, and it would of course be even better if spy always showed positive as well as negative coordinates.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sat Jun 18, 2005 1:18 am    Post subject: Re: Negative X and Y coordinates Reply with quote

Although negative coordinates cannot be used for this purpose -- since they're already reserved for moving up or to the left of a window -- this would be a good feature to have so I'll check if there is some other way to fit it into the syntax. Thanks.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List 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