guivho
Joined: 04 Jun 2005 Posts: 26 Location: Lokeren, Belgium
|
Posted: Fri Jun 17, 2005 8:23 am Post subject: Negative X and Y coordinates |
|
|
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. |
|