Re: Having problem running a sequence of AutoIT calls...
"valery_vi" <[email protected]>
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <[email protected]> |
You should add the call of WinActive to be sure that window desired
has focus.
Sample:
WinActivate("Untitled -")
If WinActive("Untitled -") Then
LeftClick(...)
else
MsgBox(0, "", "This is that case when window isn't active after
WinActivate!")
WinActivate("Untitled -")
EndIf
Valery
--- In [email protected], jdlink <no_reply@...> wrote:
>
> First, I am using Delphi with the AutoItDLL.PAS and make calls to
> AutoItDLL.dll. I run WinActivate then generate a LeftClick. At
this
> point sometimes the mouse click works and sometimes it doesn't.
When it
> works...life is good but I am not sure why it fails part of the
time.
> When it fails my Delphi appl that makes the call hangs. Help
please.
> Jack
>