Jump to content
Sign in to follow this  
AceLoc

last question

Recommended Posts

AceLoc

how do i get this

MouseClick("left", 50, 490)

into the ControlSend part?? :)

AutoItSetOption("WinTitleMatchMode", 4) 

; Get the handle of the diablo window 
$handle = WinGetHandle("classname=Diablo II", "") 
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") 
    ControlSend("handle=" & $handle, "", "", "{TAB}") 
    sleep(35) 
    ControlSend("handle=" & $handle, "", "", "{ENTER}") 
    sleep(35)
    ControlSend("handle=" & $handle, "", "", "{SPACE}")

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Share this post


Link to post
Share on other sites
spyrorocks

Are you trying to make a Diablo II account steeler? I bet you are. anyways, you could use controlclick() and use the Window Info tool to get the control's infomation. Look in the help file.

Share this post


Link to post
Share on other sites
AceLoc

and again thnx for helping!

Edited by aceloc

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Share this post


Link to post
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
Sign in to follow this  

×