Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Аватара для voler

Ветеран


Сообщения: 907
Благодарности: 36

Профиль | Отправить PM | Цитировать


Вот написал скрипт для установки Adobe Acrobat 7.0.0 Professional но видимо где то проблема с нажатием кнопки, так как вылетает сообщение уверены что хотите отменить установку Adobe Acrobat 7.0.0 Professional, и скрипт авто отвечает нет и установка идет далее. Проверял все кнопки все, вроде указано верно в чем может быть проблема?

HTML код: Выделить весь код
#cs ---------------------- Приложение: Adobe Acrobat На какой(их) версии(ях) тестировалось: 7.0.0 Professional Автор скрипта: Voler ---------------------- #ce ;предотвращение возможности множественного запуска скрипта If WinExists(@ScriptName) Then Exit AutoItWinSetTitle(@ScriptName) ;Отображать текущую строку сценария с помощью индикатора системной панели в режиме отладки. AutoItSetOption("TrayIconDebug", 1) ; Установка переменных Global $file='setup.exe', $key='keygen.exe', $AvtCode, $ACStr Run ( $file ) ;Splash WinWaitActive ( 'Adobe Acrobat 7.0 Professional - Setup' ) ControlClick ( 'Adobe Acrobat 7.0 Professional - Setup', '', 'Button1' ) ;Welcome to the Adobe Acrobat 7.0 Professional Setup WinWaitActive ( 'Adobe Acrobat 7.0 Professional - Setup' ) Sleep ( 500 ) ControlClick ( 'Adobe Acrobat 7.0 Professional - Setup', '', 'Button1' ) ;Click Next to view the End User License agreement. WinWaitActive ( 'Adobe Acrobat 7.0 Professional - Setup' ) ControlClick ( 'Adobe Acrobat 7.0 Professional - Setup', '', 'Button1' ) ;End User License agreement. WinWaitActive ( 'Adobe Acrobat 7.0 Professional - Setup' ) ControlClick ( 'Adobe Acrobat 7.0 Professional - Setup', '', 'Button2' ) ;Customer Information. WinWaitActive ( 'Adobe Acrobat 7.0 Professional - Setup' ) ControlClick ( 'Adobe Acrobat 7.0 Professional - Setup', '', 'Button1' ) ;Cache the Installer Files. WinWaitActive ( 'Adobe Acrobat 7.0 Professional - Setup' ) ControlClick ( 'Adobe Acrobat 7.0 Professional - Setup', '', 'Button1' ) ;PDFMaker Installation and Integration Information. WinWaitActive ( 'Adobe Acrobat 7.0 Professional - Setup' ) ControlClick ( 'Adobe Acrobat 7.0 Professional - Setup', '', 'Button1' ) ;Please select a setup type. WinWaitActive ( 'Adobe Acrobat 7.0 Professional - Setup' ) ControlClick ( 'Adobe Acrobat 7.0 Professional - Setup', '', 'Button5' ) ;Destination Folder. WinWaitActive ( 'Adobe Acrobat 7.0 Professional - Setup' ) ControlClick ( 'Adobe Acrobat 7.0 Professional - Setup', '', 'Button1' ) ; рапорт инсталятора о готовности к установки WinWait ( 'Adobe Acrobat 7.0 Professional','Ready to Install the Program' ) WinWaitActive ( 'Adobe Acrobat 7.0 Professional','Ready to Install the Program' ) ControlClick ( 'Adobe Acrobat 7.0 Professional', 'Ready to Install the Program', 'Button1' ) ; активация - начало WinWait ( 'Adobe Acrobat Installer','Activation Options' ) ;это окно иногда появляется, а иногда нет. Закономерность появления не найдена. If WinExists ( 'Adobe Acrobat Installer', 'Activate Using the Internet' ) Then WinActivate ( 'Adobe Acrobat Installer', 'Activate Using the Internet' ) WinWaitActive ( 'Adobe Acrobat Installer', 'Activate Using the Internet' ) ControlClick ( 'Adobe Acrobat Installer', 'Activate Using the Internet', 'Button3' ) EndIf ; продолжение активации - выбираем активировать по телефону WinWaitActive ( 'Adobe Acrobat Installer','Activation Options' ) Sleep ( 500 ) ControlClick ( 'Adobe Acrobat Installer','Activation Options', 'Button2' ) Sleep ( 500 ) ControlClick ( 'Adobe Acrobat Installer','Activation Options', 'Button7' ) exit


Последний раз редактировалось voler, 31-05-2007 в 15:56.


Отправлено: 08:06, 31-05-2007 | #446