Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) Run('FreePrimoSetup.exe') WinWait("PrimoPDF Setup","< &Back") If Not WinActive("PrimoPDF Setup","< &Back") Then WinActivate("PrimoPDF Setup","< &Back") WinWaitActive("PrimoPDF Setup","< &Back") Send("{ALTDOWN}n{ALTUP}") WinWait("PrimoPDF Setup","I agree to the terms") If Not WinActive("PrimoPDF Setup","I agree to the terms") Then WinActivate("PrimoPDF Setup","I agree to the terms") WinWaitActive("PrimoPDF Setup","I agree to the terms") Send("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{UP}{TAB}{TAB}{SPACE}") WinWait("PrimoPDF Setup","C&hange...") If Not WinActive("PrimoPDF Setup","C&hange...") Then WinActivate("PrimoPDF Setup","C&hange...") WinWaitActive("PrimoPDF Setup","C&hange...") Send("{SPACE}") WinWait("PrimoPDF Setup","&Next >") If Not WinActive("PrimoPDF Setup","&Next >") Then WinActivate("PrimoPDF Setup","&Next >") WinWaitActive("PrimoPDF Setup","&Next >") Send("{SPACE}") WinWait("PrimoPDF Setup","&Finish") If Not WinActive("PrimoPDF Setup","&Finish") Then WinActivate("PrimoPDF Setup","&Finish") WinWaitActive("PrimoPDF Setup","&Finish") Send("{SPACE}")