Sign in to follow this  
Followers 0
wildhorsend

Help me for send key - I'm a newbie

1 post in this topic

#1 ·  Posted (edited)

Please help me flow code. I want to write autoit code for auto using manashied skill each 2 minute then continue using evil skill in game online MU (mu.gate.vn). The Tooltip display but no key send to MU.

; Here code

Opt("WinWaitDelay",100)

Opt("WinTitleMatchMode",4)

Opt("WinDetectHiddenText",1)

Opt("MouseCoordMode",0)

Opt("TrayMenuMode",1)

Opt("MouseClickDownDelay",1)

Opt("MouseClickDelay",1)

Opt("SendKeyDownDelay",1)

Opt("SendKeyDelay",1)

Global $Paused, $ManaShied, $Evil

$ManaShied = "2" ;ManaShied Skill

$Evil = "1" ;Evil Skill

HotKeySet("^a", "AutoManaShied") ;Ctrl+a for auto or stop auto manashied

Global $hWnd = WinGetHandle("MU")

Global $sHWND = String($hWnd) ; Convert to a string

Func AutoManaShied()

$Paused = NOT $Paused

While $Paused

If WinActive("MU") Then

sleep(60000)

Send($ManaShied) ; or Send("2") but It not send to MU

Sleep(500)

Send($Evil) ; or Send("1") but It not send to MU

ToolTip("Auto ManaShied runing")

EndIf

WEnd

ToolTip("")

EndFunc

While 1

Sleep(100)

WEnd

Edited by wildhorsend

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  
Followers 0