Sign in to follow this  
Followers 0
Sjoenie

ControlClick

10 posts in this topic

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)

Share this post


Link to post
Share on other sites



It would help if you maybe provided a screenshot of what you are dealing with. Have you used the Window Info tool?


Amp Energy Drink: the official sponsor of me scripting at 2AM.

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

CoePSX, could u explain a little simpler please?

Mike, Yes i've used Window Info tool. Think I did it all correct.

The other lines above are working just fine.

I've added the screenshot where the script stops.

Share this post


Link to post
Share on other sites

Maybe,

ControlSend("Process Succeded", "OK", 2, "{ENTER}")

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
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]

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

This has nothing to do with the script or anything, but im just wondering, why do you keep refering the script(?) as "he"


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

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  
Followers 0