Jump to content

ControlClick


Recommended Posts

I'm making my first script....

Installing WinRAR without interfering.

But when the Patch needs to be applied, he stops at the confirmation window.

The Window name is "Process succeeded" but he can't seem to find it.

Help anyone?

Here is the script:

Run("WinRAR.3.20.Corporate.Edition.WinAll.Regged.exe")

WinWaitActive("WinRAR 3.20")

ControlClick ( "WinRAR 3.20", "Install", 1)

WinWaitActive("WinRAR Setup", "Associate")

ControlClick ( "WinRAR Setup", "OK", 1)

WinWaitActive("WinRAR Setup", "WinRAR has been successfully installed to")

ControlClick ( "WinRAR Setup", "Done", 1)

WinWaitActive("WinRAR")

Winclose("WinRAR")

FileCopy ( "rarreg.key", "C:\Program Files\WinRAR\rarreg.key" )

FileCopy ( "Patch.exe", "C:\Program Files\WinRAR\Patch.exe" )

Run ( "Patch.exe", "C:\Program Files\WinRAR")

WinWaitActive("","WinRaR and DOSrar")

ControlClick("","WinRaR and DOSrar",1)

WinWaitActive("Process succeeded","OK")

ControlClick("Process succeeded","OK",1)

Send("!f")

WinWaitActive("Process succeeded")

ControlClick ( "Process succeeded", "OK", 2)

Link to comment
Share on other sites

here's what I did:

The WinRar installation IS a WinRar SFX rar file.

So... open the winrar installation with WinRar, replace the WinRar.exe with the patched one, and insert the rarreg.key to it.

To make it equal to the original installation copy the comments of the original one to the new one.

[quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"][/font]

Link to comment
Share on other sites

Try opening the WinRAR installation executable with Winrar. Right click it then Open with WinRar.

You will see that it's a WinRAR Setup SFX. It means it was made with WinRAR. It also means that you can do a identical installation with diferent files.

If you'd like to see, here's the WinRAR 3.51 installation that I modified. It's in portuguese though :P

The key to making it just like the original one are the comments (WinRAR writes the installation parameters as comments)

[quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"][/font]

Link to comment
Share on other sites

Sorry guys but none of the above worked.

Coepsx, i see now what you mean, but don't know how this must help me.

I think it's something to do with the Patch executable... when the first result screen appears, he won't continue the script.

Any other ideas?

Link to comment
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
 Share

  • Recently Browsing   0 members

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