thomas Newbie
Joined: 15 Jan 2003 Posts: 23 Location: Germany
|
Posted: Fri Feb 06, 2004 7:15 am Post subject: dialog (click OK automatically) |
|
|
Hello,
I have an application that creat a dialog with one Button OK.
Now I want to identify this dialog with vds script and then confirm the OK Button with the script, so the application continue.
Does anybody now I solution??
Thanks!!
Thomas |
|
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Fri Feb 06, 2004 9:15 am Post subject: |
|
|
I think you'll have to create a repeat loop that checks whether or not the windows exists, and then send a @cr() to that window.
Like this:
| Code: |
option decimalsep, ","
%%Exit =
repeat
rem Try to use a class name instead of a window title... Class names are presumably unique...
if @winexists(Warning!)
window send, Warning!, @cr()
%%Exit = 1
end
wait "0,01"
until %%Exit
|
Regards,
Vic _________________ phpBB Development Team |
|