Jump to content
Sign in to follow this  
jooy

i need help

Recommended Posts

jooy

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

Share this post


Link to post
Share on other sites
JLogan3o13

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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×