Sjoenie Posted August 15, 2006 Share Posted August 15, 2006 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 More sharing options...
mike1305 Posted August 15, 2006 Share Posted August 15, 2006 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. Link to comment Share on other sites More sharing options...
CoePSX Posted August 15, 2006 Share Posted August 15, 2006 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 More sharing options...
Sjoenie Posted August 15, 2006 Author Share Posted August 15, 2006 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. Link to comment Share on other sites More sharing options...
AzKay Posted August 15, 2006 Share Posted August 15, 2006 Maybe, ControlSend("Process Succeded", "OK", 2, "{ENTER}") # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Zedna Posted August 15, 2006 Share Posted August 15, 2006 Try ControlClick("Process succeeded","OK","Button1")oÝ÷ Ú)ìµæ¡ö®¶sd6öçG&öÄ6Æ6²gV÷Cµ&ö6W727V66VVFVBgV÷C²ÂgV÷C´ô²gV÷C²Ã" Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
CoePSX Posted August 16, 2006 Share Posted August 16, 2006 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 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 More sharing options...
Sjoenie Posted August 17, 2006 Author Share Posted August 17, 2006 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 More sharing options...
AzKay Posted August 17, 2006 Share Posted August 17, 2006 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- # Link to comment Share on other sites More sharing options...
Bert Posted August 17, 2006 Share Posted August 17, 2006 When that window is active, what happens when you press the enter key? If that works, then simply wait for the window to be active, then send "enter" The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now