thanks for the reminder. I forgot I was on a coding forum. hmm. Still not working. I am getting a Line -1: error. **EDIT** I read it wrong. It said Line -1:, not Line: -1 It crashes after 2 seconds... I wonder where that is. ControlCommand is a command right? can commands be used as umm... ..forgot the term.. as a comparison? [whiles, ifs, do untils, !='s, other stoofs] $title = 'setup' Do Sleep(1000) WinActivate($title) Until WinActive($title) sleep(2000) Do Sleep(200) Until ControlCommand($title, , 'Button2', 'IsEnabled', '') ControlClick($title, "", "[CLASS:Button; INSTANCE:2]")