AceLoc 0 Report post Posted July 9, 2006 expandcollapse popupOpt("RunErrorsFatal", 0) Run(@ProgramfilesDir & "\Internet Explorer\IEXPLORE.EXE", @ProgramfilesDir & "\Internet Explorer", @SW_MAXIMIZE) sleep(4000) AutoItSetOption("WinTitleMatchMode", 4) ; Get the handle of the diablo window $handle = WinGetHandle("classname=Internet", "") If @error Then MsgBox(4096, "Error", "Could not find the correct window") exit Else $i = 0 Do ; MsgBox(4096, "success", "The window handle is " & $handle) ; Send some text directly to this window's edit control ;ControlClick("handle=" & $handle, "", "", "left") Opt("SendKeyDelay",35) ControlSend("handle=" & $handle, "", "", "{TAB}") ControlSend("handle=" & $handle, "", "", "{TAB}") ControlSend("handle=" & $handle, "", "", "{TAB}") ControlSend("handle=" & $handle, "", "", "{TAB}") ControlSend("handle=" & $handle, "", "", "{TAB}") ControlSend("handle=" & $handle, "", "", "{TAB}") ControlSend("handle=" & $handle, "", "", "{TAB}") ControlSend("handle=" & $handle, "", "", "{TAB}") ControlSend("handle=" & $handle, "", "", "{TAB}") ControlSend("handle=" & $handle, "", "", "{TAB}") ControlSend("handle=" & $handle, "", "", "{TAB}") $i = $i + 1 Until $i = 1 EndIf [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Share this post Link to post Share on other sites
SmOke_N 199 Report post Posted July 9, 2006 I've never seen this option before:"handle=" just remove the "handle=" & $handle and use only $handle and it see if that works. But since your using IE, you might want to take a look at IE.au3. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Share this post Link to post Share on other sites