Jump to content

Help me for send key - I'm a newbie


Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...