Jump to content

Recommended Posts

Posted (edited)

hi everybody =)

i'm Jooy, a newbie on this forum !
i come here to claim for your help. i started to learn to code with AutoIt few months ago.
Actually, i made a new script that should flag some points in strategic positions by pressing numpad keys.

example : i push on [1] and all points go up, i push on 2 they come all around yours...

so, i wrote some codes about it but i don't have enought knowings (? srry for my bad english, so lame sometimes :( ) to go further :/

------------------------------------------------

i would like you :

-to tell me how this is supposed to be organized :/

-is this possible : 

; Run the GUI until the window is closed and track some distance
  While 1
    $msg = GUIGetMsg()
    Global $Distance, $Agent
    Select
     Case $msg = $GUI_EVENT_CLOSE
       ExitLoop
        Case $Agent = GetAgentByID(-1)
            $lMe = GetAgentByID(-2)

            $TargetX = DllStructGetData($Agent, 'X')
            $TargetY = DllStructGetData($Agent, 'Y')

            GUICtrlSetData($Distance, Floor(ComputeDistance(DllStructGetData($lMe, 'X'), DllStructGetData($lMe, 'Y'), $TargetX, $TargetY)))
    EndSelect
  WEnd
EndFunc

;~ flag1
Func Flag1()
    if HotKeySet("{NUMPAD1}") Then
        CommandAll(($Distance + 100), ($Distance + 50))
    EndIf
EndFunc

i think there are some ugly misstakes in my code xD but please, help me, i was really enjoyed to make this and i want to complete it =)

thank you by advance, i love your website ;)

Edited by jooy
  • Moderators
Posted

jooy, you seem to have missed the forum rules on your way in, especially the part where game automation discussion is forbidden (mostly because it is lame). Please read them now - lower right corner of every page - and you'll see why you will get no assistance.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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