|
#1
|
|||
|
|||
|
Hi
I am completly new to this. I have just used AutoIt to create a script to silently install Spywareguard (please dont tell me there is already a Silent Switch, i want to practise). I followed the instructions But used Spywareguard instead of Winamp. I want to test it, but where do i put the .exe file so AutoIt can run it. Hope i have explained myself well enough!! Thanks for any help with this. |
|
#2
|
|||
|
|||
|
Hi
Sorted, i put it in the same directory, and it works. |
|
#3
|
|||
|
|||
|
Hi
I now have another problem. I thought AutoIt was a program to automate the installation of programs, i have used AutoIt to create a script to install Spywareguard. Unfortunately it it does not install without input from me. Have i done something wrong. Here is the script Code:
Run("Spywareguardsetup.exe")
WinWaitActive("Setup-Spywareguard", "License Agreement")
Send("{ENTER}")
WinWaitActive("Setup-Spywareguard", "Information")
Send("{ENTER}")
WinWaitActive("Setup-Spywareguard", "Select Destination Directory")
Send("{ENTER}")
WinWaitActive("Setup-Spywareguard", "Select Components")
Send("{ENTER}")
WinwaitActive("Setup-Spywareguard", "Select Additional Tasks")
Send("{SPACE} {ENTER}")
WinwaitActive("Setup-Spywareguard", "Ready To Install")
Send("{ENTER}")
WinwaitActive("Setup-Spywareguard", "Information")
Send("{ENTER}")
Send("{ENTER}")
Can some one point me in the write direction please. |
|
#4
|
||||
|
|
||||
|
What kind of input is it requiring from you?
|
|
#5
|
|||
|
|||
|
Hi
Thanks for the reply. All of the install box's from the first to the last. It just runs as a normal install, which is not what i want. Thanks |
|
#6
|
||||
|
|
||||
|
Here is part of your code:
Run("Spywareguardsetup.exe") WinWaitActive("Setup-Spywareguard", "License Agreement") Send("{ENTER}") Does the installer launch? If so, does it just sit at the License Agreement window? If that is the case it sounds like either the window does not have focus or your window title does not exactly match... Good Luck! |
|
#7
|
|||
|
|||
|
Hi
Thanks for the reply. I have gone through it again, & double checked the spelling and layout of Words in the dialogue boxes(including what looks like 2 space's & Hyphen between "Setup - SpywareGuard"). Here is the revised code. Code:
Run("Spywareguardsetup.exe")
WinWaitActive("Setup - SpywareGuard", "Welcome to the SpywareGuard Setup Wizard")
Send("{ENTER}")
WinWaitActive("Setup - SpywareGuard", "License Agreement")
Send("{ENTER}")
WinWaitActive("Setup - SpywareGuard", "Information")
Send("{ENTER}")
WinWaitActive("Setup - SpywareGuard", "Select Destination Directory")
Send("{ENTER}")
WinWaitActive("Setup - SpywareGuard", "Select Components")
Send("{ENTER}")
WinwaitActive("Setup - SpywareGuard", "Select Additional Tasks")
Send("{SPACE} {ENTER}")
WinwaitActive("Setup - SpywareGuard", "Ready To Install")
Send("{ENTER}")
WinwaitActive("Setup - SpywareGuard", "Information")
Send("{ENTER}")
Send("{ENTER}")
Exit
Could you do me a favour and download SpywareGuard, copy my code into AutoIt, & see what you get. Thanks for any help with this. |
|
#8
|
||||
|
|
||||
|
Make sure when you fill in the "window text" you use text that is listed in the visible text field. The text you had was in the window, but not considered "visible text" by autoit...
Here you go... Run("Spywareguardsetup.exe") WinWaitActive("Setup - SpywareGuard", "Welcome") Send("{ENTER}") WinWaitActive("Setup - SpywareGuard", "License Agreement") Send("!y") WinWaitActive("Setup - SpywareGuard", "SpywareGuard helps") Send("{ENTER}") WinWaitActive("Setup - SpywareGuard", "SelectDir") Send("{ENTER}") WinWaitActive("Setup - SpywareGuard", "SelectComponents") Send("{ENTER}") WinwaitActive("Setup - SpywareGuard", "SelectTasks") Send("{SPACE} {ENTER}") WinwaitActive("Setup - SpywareGuard", "Ready") Send("{ENTER}") WinwaitActive("Setup - SpywareGuard", "Information") Send("{ENTER}") Send("{ENTER}") Exit |
|
#9
|
|||
|
|||
|
Hi Bullfighter
Thanks for the reply. Well done!!! How did you manage to find the correct wording. You must have done a lot of trial and error. I thought that the main titles had to be used, in fact you used words from the sentences, or one word from the heading. It works fine as i am sure you know. Only one blip, i only wanted a shortcut to Live update on the desktop, & not the program shortcut. how do i alter the code to reflect that? I have checked, and Quote:
Please, please don't think i am complaining, you have been a big help as it is. Many thanks Last edited by loucypher; 10-15-2008 at 07:50 AM. |
|
#10
|
|||
|
|||
|
Hi Bullfighter
Just thought of something else, is there a sticky for this code, as it would be helpfull for other's. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|