--- "Karen J. Bowen" <[EMAIL PROTECTED]> wrote:
> swzoh wrote:
>
> >> Win.Mouse("re 50 355 lc")
> >>
> >>
> >Is the cursor positioned properly over the button?
> >What is this button? Maybe you need a double click, i.e.,
> >ll, instead of lc.
> >
> Thanks for all the input guys - yes, as Alan said I'm trying to click a
> button within another application. But unfortunately (and
> frustratingly) this button doesn't have a keyboard equivalent.
>
> The pgm is MYOB, and the partic. button is the Task Start/Stop
button on
> the single Enter Activity Slip page.
>
> Yep, Sean the cursor position is exactly over the button, and I've just
> tried a double click but no luck with that either.
>
> Has anyone else got MYOB they could try this on?
>
> This is my script:
> ----------
> @TaskStartStop
>
> Local m = "MYOB*"
>
> VDesk.SwitchTo("MiinxBase")
>
> if (not activewindow(m)) do
> Window.Show(m)
> Wait.For(2000, activewindow(m))
> endif
>
> Win.Mouse("re 50 355 ll")
>
> Quit
> ----------
This has been my usual suspect for these kind of problems.
You may try after replacing 'Wait.For(2000, activewindow(m))'
with 'Wait.Until(5000, activewindow(m))'
Sean
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/