Jump to content

Recommended Posts

Posted

Hi.

I need help with windows. Here is a situation. I have a few archives (microsoft KB files) to extract in same folder. But all that archives have three same files and rest of a files are different. Now when I start extraction it always ask me to overwrite those three files. Now I need help to automate this, for example that autoit always answer with 'Yes at all'. And there is one more problem. Every archive have other name of window.

Any suggestion how to solve this?

Thanks in advance for any help!

Cheers :)

Posted

No offense but have you done the the tutorials in the help file?

Then read up on WinWaitActive and ControlSend.

Also there is (at least it used to be) a terrific tool called AU3Record.exe or scriptwriter.exe in the Scite4autoit3 installation. It records what you do and makes a script template for you so you can modify a bit and let the result do the magic..:)

Posted

And as a second thought search for 7-zip in the forum. You will find several scripts using that or zip (use advanced search and hook of titles only) to figure out XP and later.

Posted

Hi

Thanks for reply. I know about WinWaitActive and ControlSend, but the problem is that I don't know the title of the windows, because it depends on user input. I looked for 7-zip but it seems that it's to complicated for me right now, but I'll still try to figure it out.

In meantime, if you have any other suggestion please post.

CHeers :)

Posted (edited)

Do you know part of the title? If so the Win* function family supports regexp in the expression fields.

ex:

WinWaitActive("regexp=note.*", "")

to get any window with a title starting with note followed by nothing or anything.

Do you have some code as a starting point?

EDIT: hmm, that regexp stuff is from the top of my head so consult the helpfile.

Edited by Uten

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...