AceLoc Posted May 27, 2006 Share Posted May 27, 2006 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] Link to comment Share on other sites More sharing options...
spyrorocks Posted May 27, 2006 Share Posted May 27, 2006 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. [center] My Projects: Online AutoIt Compiler - AutoForum - AutoGuestbook - AutoIt Web-based Auto Installer - Pure AutoIt Zipping Functions - ConfuseGen - MindReader - P2PChat[/center] Link to comment Share on other sites More sharing options...
AceLoc Posted May 28, 2006 Author Share Posted May 28, 2006 (edited) and again thnx for helping! Edited May 28, 2006 by aceloc [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now