Need to know caption, menu, window border, or client workspace or
something else that I don't know.
Check out the following from a PowerProNote for various windows:
;XXXXXXXXXXXXXX
; 3 seconds to click away from the PowerProNote
WAIT.For(3000)
LOCAL x, y
FOR(LOCAL i; i lt 20; i= i +1)
x= xmouse -Win.Left("Active")
y= ymouse -Win.Top("Active")
WIN.Mouse("Relative "++ x++ " "++y)
WAIT.For(100)
ENDFOR
QUIT
Can substitute WIN.GetFocus for "active" and get slightly different
results.
Ted
--- In [email protected], bizaro wrote:
>
> Hello Ted,
>
> you wrote...
>
> > Does someone know how to calculate the x y values for MOUSE
> > Relative
> > positioning based on the xmouse, ymouse and "active" window? I
want
> > to do this in a script.
>
> Maybe following will work,
> YActiveRelative = YMouse - Win.Top("Active")
> XActiveRelative = XMouse - Win.Left("Active")
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/