Jump to content
Sign in to follow this  
glicoauto

press OK

Recommended Posts

glicoauto

Hi everybody,

I never scripted.

I'd like to find a way to automaticly press the OK button in the window that sometimes pops up while downloading

a bunch of file from a site.

I tried to add more info here: http://img17.imageshack.us/img17/8360/pressok.png

I'll try to read the documentation, but if in the meantime anyone could help,

maybe pointing to the right discussion, it would help immensely.

Best Regards from Italy

(Who wants a postcard? :-)

Share this post


Link to post
Share on other sites
PsaltyDS

Start out by downloading AutoIt and the modified SciTE editor.

When you install the full version of AutoIt, you can open the help file (AutoIt3.chm) where you will find some basic tutorials, the full command reference, and example scripts for almost every function.

You'll be particularly interested in looping your script (see While/WEnd in the help file), detecting when the window exists (see WinExists() in the help file), and then hitting OK (maybe ControlSend() or ControlClick() in the help file).

If you get stuck, post a more specific question.

Welcome to AutoIt. :)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
boogieoompa

Something like?

While 1
    Winwaitactive("Title of popup")
    Send("{Enter}")  ; or perhapsMouseClick(x,y)
Wend

Share this post


Link to post
Share on other sites
glicoauto

That whole "Give a man a fish..." thang is lost on you, huh?

:)

B)

;)

thank you so much...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.