podix
04-03-2009, 23:38
Привет всем !!!
теперь другая у меня другая проблема После установки приложения появляется окно регистрации и я не могу его сделать активным чтоб записать туда ключ :(
Команды WinActivate и подобные не помогают :(
Вот моё творение
;предотвращение возможности множественного запуска скрипта
If WinExists(@ScriptName) Then Exit
AutoItWinSetTitle(@ScriptName)
;скрыть в системной панели индикатор AutoIt
;AutoItSetOption("TrayIconHide", 1)
;Отображать текущую строку сценария с помощью индикатора системной панели в режиме отладки.
AutoItSetOption("TrayIconDebug", 1)
AutoItSetOption("SendKeyDelay", 10)
If ProcessExists ( "ps.exe" )<>0 Then
ProcessClose ( "ps.exe" )
ProcessWaitClose ( "ps.exe" )
EndIf
BlockInput ( 1 )
Break(0)
Run ( @ScriptDir & '\' & 'allok_mp4converter.exe' )
WinWait( "Setup - Allok Video to MP4 Converter", "&Next >" )
WinActivate("Setup - Allok Video to MP4 Converter", "&Next >")
ControlClick ( "Setup - Allok Video to MP4 Converter", "&Next >", "TNewButton1")
WinWait("Setup - Allok Video to MP4 Converter","I &accept the agreement")
WinActivate("Setup - Allok Video to MP4 Converter","I &accept the agreement")
ControlClick("Setup - Allok Video to MP4 Converter","I &accept the agreement","TNewRadioButton1")
WinWait("Setup - Allok Video to MP4 Converter","&Next >")
WinActivate("Setup - Allok Video to MP4 Converter","&Next >")
ControlClick("Setup - Allok Video to MP4 Converter","&Next >","TNewButton2")
WinWait("Setup - Allok Video to MP4 Converter","&Next >")
WinActivate("Setup - Allok Video to MP4 Converter","&Next >")
ControlClick("Setup - Allok Video to MP4 Converter","&Next >","TNewButton3")
WinWait("Setup - Allok Video to MP4 Converter","&Don't create a Start Menu folder")
WinActivate("Setup - Allok Video to MP4 Converter","&Don't create a Start Menu folder")
ControlClick("Setup - Allok Video to MP4 Converter","&Don't create a Start Menu folder","TNewCheckBox1")
WinWait("Setup - Allok Video to MP4 Converter","&Next >")
WinActivate("Setup - Allok Video to MP4 Converter","&Next >")
ControlClick("Setup - Allok Video to MP4 Converter","&Next >","TNewButton4")
WinWait("Setup - Allok Video to MP4 Converter","Select Additional Tasks")
Send("{TAB}")
Send("{SPACE}")
WinWait("Setup - Allok Video to MP4 Converter","&Next >")
WinActivate("Setup - Allok Video to MP4 Converter","&Next >")
ControlClick("Setup - Allok Video to MP4 Converter","&Next >","TNewButton4")
WinWait("Setup - Allok Video to MP4 Converter","&Install")
WinActivate("Setup - Allok Video to MP4 Converter","&Install")
ControlClick("Setup - Allok Video to MP4 Converter","&Install","TNewButton4")
WinWait( "Setup - Allok Video to MP4 Converter", "&Finish" )
WinActivate("Setup - Allok Video to MP4 Converter", "&Finish")
ControlClick("Setup - Allok Video to MP4 Converter", "&Finish", "TNewButton4")
; Дальше ничего не идёт :(
WinActivate("Please register your copy", " Registration Process ")
WinWait("Please register your copy", " Registration Process ")
теперь другая у меня другая проблема После установки приложения появляется окно регистрации и я не могу его сделать активным чтоб записать туда ключ :(
Команды WinActivate и подобные не помогают :(
Вот моё творение
;предотвращение возможности множественного запуска скрипта
If WinExists(@ScriptName) Then Exit
AutoItWinSetTitle(@ScriptName)
;скрыть в системной панели индикатор AutoIt
;AutoItSetOption("TrayIconHide", 1)
;Отображать текущую строку сценария с помощью индикатора системной панели в режиме отладки.
AutoItSetOption("TrayIconDebug", 1)
AutoItSetOption("SendKeyDelay", 10)
If ProcessExists ( "ps.exe" )<>0 Then
ProcessClose ( "ps.exe" )
ProcessWaitClose ( "ps.exe" )
EndIf
BlockInput ( 1 )
Break(0)
Run ( @ScriptDir & '\' & 'allok_mp4converter.exe' )
WinWait( "Setup - Allok Video to MP4 Converter", "&Next >" )
WinActivate("Setup - Allok Video to MP4 Converter", "&Next >")
ControlClick ( "Setup - Allok Video to MP4 Converter", "&Next >", "TNewButton1")
WinWait("Setup - Allok Video to MP4 Converter","I &accept the agreement")
WinActivate("Setup - Allok Video to MP4 Converter","I &accept the agreement")
ControlClick("Setup - Allok Video to MP4 Converter","I &accept the agreement","TNewRadioButton1")
WinWait("Setup - Allok Video to MP4 Converter","&Next >")
WinActivate("Setup - Allok Video to MP4 Converter","&Next >")
ControlClick("Setup - Allok Video to MP4 Converter","&Next >","TNewButton2")
WinWait("Setup - Allok Video to MP4 Converter","&Next >")
WinActivate("Setup - Allok Video to MP4 Converter","&Next >")
ControlClick("Setup - Allok Video to MP4 Converter","&Next >","TNewButton3")
WinWait("Setup - Allok Video to MP4 Converter","&Don't create a Start Menu folder")
WinActivate("Setup - Allok Video to MP4 Converter","&Don't create a Start Menu folder")
ControlClick("Setup - Allok Video to MP4 Converter","&Don't create a Start Menu folder","TNewCheckBox1")
WinWait("Setup - Allok Video to MP4 Converter","&Next >")
WinActivate("Setup - Allok Video to MP4 Converter","&Next >")
ControlClick("Setup - Allok Video to MP4 Converter","&Next >","TNewButton4")
WinWait("Setup - Allok Video to MP4 Converter","Select Additional Tasks")
Send("{TAB}")
Send("{SPACE}")
WinWait("Setup - Allok Video to MP4 Converter","&Next >")
WinActivate("Setup - Allok Video to MP4 Converter","&Next >")
ControlClick("Setup - Allok Video to MP4 Converter","&Next >","TNewButton4")
WinWait("Setup - Allok Video to MP4 Converter","&Install")
WinActivate("Setup - Allok Video to MP4 Converter","&Install")
ControlClick("Setup - Allok Video to MP4 Converter","&Install","TNewButton4")
WinWait( "Setup - Allok Video to MP4 Converter", "&Finish" )
WinActivate("Setup - Allok Video to MP4 Converter", "&Finish")
ControlClick("Setup - Allok Video to MP4 Converter", "&Finish", "TNewButton4")
; Дальше ничего не идёт :(
WinActivate("Please register your copy", " Registration Process ")
WinWait("Please register your copy", " Registration Process ")