con este office 2007 el problema es q todas las ventanas se llaman igual y aun con el au3info todas generan el mismo visible text y hidden text. todos los comandos los ejecuta bien, me instala en la partición d: que es donde yo quise instalar D:Microsof Office 20007, selecciona solo los componentes que yo deseo instalar, instala y mientras instala el ejecuta el comando de cierre Send("{ALTDOWN}c{ALTUP}") muchísimo antes de tiempo y cuando termina de instalar y ocupamos que el haga el alt c y cierre el programa no lo hace pero el script no queda en pausa como pasa a veces que el programa no puede o sabe donde ejecutar el siguiente comando. espero me entiendan, pondré capturas del au3info y los scripts hechos.
Capturas
Scripts
Script 1, con este me dio fallos a la hora de seleccionar componentes a instalar ejemplo no quería que instalara el outlook y no ejecutaba el comando y se pausaba el script
Código: Seleccionar todo
#region --- Au3Recorder generated code Start (v3.3.9.5 KeyboardLayout=0000040A) ---
#region --- Internal functions Au3Recorder Start ---
Func _Au3RecordSetup()
Opt('WinWaitDelay',100)
Opt('WinDetectHiddenText',1)
Opt('MouseCoordMode',0)
Local $aResult = DllCall('User32.dll', 'int', 'GetKeyboardLayoutNameW', 'wstr', '')
If $aResult[1] <> '0000040A' Then
MsgBox(64, 'Warning', 'Recording has been done under a different Keyboard layout' & @CRLF & '(0000040A->' & $aResult[1] & ')')
EndIf
EndFunc
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
_AU3RecordSetup()
#endregion --- Internal functions Au3Recorder End ---
Run('OfficeEnterp07SP1.exe')
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{ALTDOWN}p{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{DOWN}{DOWN}{SPACE}")
_WinWaitActivate("classname=Net UI Tool Window_CatalystFlexUI","")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{DOWN}{SPACE}")
_WinWaitActivate("classname=Net UI Tool Window_CatalystFlexUI","")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{SPACE}")
_WinWaitActivate("classname=Net UI Tool Window_CatalystFlexUI","")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{SPACE}")
_WinWaitActivate("classname=Net UI Tool Window_CatalystFlexUI","")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{SPACE}")
_WinWaitActivate("classname=Net UI Tool Window_CatalystFlexUI","")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{DOWN}{DOWN}{SPACE}")
_WinWaitActivate("classname=Net UI Tool Window_CatalystFlexUI","")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{ALTDOWN}b{ALTUP}{TAB}{RIGHT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}d{SHIFTDOWN}.{SHIFTUP}{ALTDOWN}h{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{ALTDOWN}c{ALTUP}")
#endregion --- Au3Recorder generated code End ---
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.12.0
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
Código: Seleccionar todo
#region --- Au3Recorder generated code Start (v3.3.9.5 KeyboardLayout=0000040A) ---
#region --- Internal functions Au3Recorder Start ---
Func _Au3RecordSetup()
Opt('WinWaitDelay',100)
Opt('WinDetectHiddenText',1)
Opt('MouseCoordMode',0)
Local $aResult = DllCall('User32.dll', 'int', 'GetKeyboardLayoutNameW', 'wstr', '')
If $aResult[1] <> '0000040A' Then
MsgBox(64, 'Warning', 'Recording has been done under a different Keyboard layout' & @CRLF & '(0000040A->' & $aResult[1] & ')')
EndIf
EndFunc
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
_AU3RecordSetup()
#endregion --- Internal functions Au3Recorder End ---
Run('OfficeEnterp07SP1.exe')
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{ALTDOWN}p{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{DOWN}{DOWN}{ENTER}")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{DOWN}{ENTER}")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{ENTER}")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{ENTER}")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{ENTER}")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{DOWN}{DOWN}{ENTER}")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{ALTDOWN}b{ALTUP}{TAB}{RIGHT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}d{SHIFTDOWN}.{SHIFTUP}{ALTDOWN}h{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{ALTDOWN}c{ALTUP}")
#endregion --- Au3Recorder generated code End ---
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.12.0
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
Código: Seleccionar todo
#region --- Au3Recorder generated code Start (v3.3.9.5 KeyboardLayout=0000040A) ---
#region --- Internal functions Au3Recorder Start ---
Func _Au3RecordSetup()
Opt('WinWaitDelay',100)
Opt('WinDetectHiddenText',1)
Opt('MouseCoordMode',0)
Local $aResult = DllCall('User32.dll', 'int', 'GetKeyboardLayoutNameW', 'wstr', '')
If $aResult[1] <> '0000040A' Then
MsgBox(64, 'Warning', 'Recording has been done under a different Keyboard layout' & @CRLF & '(0000040A->' & $aResult[1] & ')')
EndIf
EndFunc
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
_AU3RecordSetup()
#endregion --- Internal functions Au3Recorder End ---
Run('OfficeEnterp07SP1.exe')
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{ALTDOWN}p{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{DOWN}{DOWN}{ENTER}")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{DOWN}{ENTER}")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{ENTER}")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{ENTER}")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{ENTER}")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{DOWN}{DOWN}{DOWN}{ENTER}")
Sleep(1000)
Send("{ALTDOWN}n{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","")
Sleep(1000)
Send("{ALTDOWN}b{ALTUP}{TAB}{RIGHT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}d{SHIFTDOWN}.{SHIFTUP}{ALTDOWN}h{ALTUP}")
_WinWaitActivate("Microsoft Office Enterprise 2007","&Cerrar")
Send("{ALTDOWN}c{ALTUP}")
#endregion --- Au3Recorder generated code End ---
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.12.0
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
Ojala me entiendan y me puedan ayudar a ver si logro q al final cierre solo, xq al ir en un wip ocupo que cierre para q los demas programas se instalen.
Muchas Gracias