Need Help with AutoIt

08/03/2012 20:51 Asheriit#1
Hi all!
I shall need help on autoit!
I have create my home-made malformed young,
But I have one concerns with the function " WinActivate "
The malformed it throws, but he re-knows the window Archlord:S
I them tested on diverse game wow, last chaos, nostale..
He thus walks I do not understand why on Archlord he does not work!
I suppose that it come from the function Winactivate.
If somebody could directed my soul misled. Ty ;p

My script:

Code:
Hotkeyset("{esc}","Quit")
HotKeySet("{PAUSE}", "TogglePause")
Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc
Func Quit()
	Exit
EndFunc

;Bulles Info
MsgBox(0, "Tutorial", "Bonjour / Hi!" )
MsgBox(0, "Tutorial", "Bon jeu! / Good Game!" )
;depar
WinActivate("Archlord")
While 1
Sleep ( 5000 )
Send ( "²" )
Sleep ( 1300 )
Send ( "+3" )
Sleep ( 1300 )
Send  ( "+4" )
Sleep ( 1300 )
Send ( "(" )
Sleep ( 1300 )
Send ( "-" )
Sleep ( 1300 )
Send  ( "²" )
Send  ( "²" )
Send  ( "²" )
Sleep ( 500 )
;Depart des attaques!!
Send ( "{TAB}" )
Sleep ( 500 )
Send ( "+3" )
Sleep ( 30000 )
Send ( "{SPACE}" )
Sleep ( 250 )
Send ( "{SPACE}" )
Sleep ( 250 )
Send ( "{SPACE}" )
Sleep ( 500 )
Send  ( "²" )
Send  ( "²" )
Sleep ( 250 )
Send ( "+3" )
Sleep ( 10000 )
Wend
08/03/2012 23:36 DjMom#2
maybe if u run it as admin on 64 bits it will work otherwise u have to learn a new way ^^
08/04/2012 00:29 Asheriit#3
already try and.. fail x)

I found, an error of striking he shall seem!
11/15/2012 11:42 mlukac89#4
first you need to add this

PHP Code:
$hwnd WinGetHandle("Archlord","")
WinActivate($hwnd
then you send key with

PHP Code:
ControlSend($hwnd"""""{3}"