Jump to content

hi.


Recommended Posts

Opt("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]

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...