Macro Toolworks Products Discussion Forums :: General Discussion
Welcome Guest   
 Subject :auto adjust on different window sizes... 06-03-2011 00:12:52 
ronmar_lasco@yahoo.com
Joined: 26-01-2011 00:50:37
Posts: 8
Location
Here's the situation:

I have a macro set for a normal size window. Sometimes I have the same type of window but it's a different size.
Can I make ClickyMouse recognize that the size is different and the coordinates for clicking should be adjusted according to the table size?
IP Logged
 Subject :Re:auto adjust on different window sizes... 08-04-2011 18:23:00 
petr
Joined: 15-10-2009 11:48:52
Posts: 152
Location
Hello,

it is possible to tell that mouse clicks are relative to active window using <mousemove_relative_win> command. This prevents from clicking on wrong controls when window is on difefrent positions when macros is run.

If you need to adjust mouse clicks based on window size changes then you need to get the size of the window first and then recalculate the positions where to click. The window size can be get using <wininfo> command.

Petr
IP Logged
Page # 


Powered by ccBoard


Login and share your experience - send messages to forums and add comments to samples, commands and other resources.



Account is free of charge, easy to setup.