Jump to content
Sign in to follow this  
Haveskillz

Hi all

Recommended Posts

Haveskillz

for a game... :)

Opt("RunErrorsFatal", 0)
Run("C:\Program Files\Diablo II\DiabloII.exe", "", @SW_MAXIMIZE)
sleep(5000)

AutoItSetOption("WinTitleMatchMode", 4) 

; Get the handle of the diablo window
$handle = WinGetHandle("diabloii", "")  
If @error Then
    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")
    sleep(2500)
    ControlSend("handle=" & $handle, "", "", "{TAB}")
    sleep(40)
    ControlSend("handle=" & $handle, "", "", "{ENTER}")  
    sleep(35000)
    ControlSend("handle=" & $handle, "", "", "{ENTER}")
    $i = $i + 1  
    Until $i = 1

EndIf

exit

but how can i hide this because

@SW_HIDE
dont work

if this aint possible is there an other way then?

thanks regards,, me!

Edited by Haveskillz

Share this post


Link to post
Share on other sites
Thatsgreat2345

is handle=$handle(the variabel name) your title? cuz if its not its not going to send it to that window

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.