Jump to content

i need help


jooy
 Share

Recommended Posts

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

  • Moderators

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!

Link to comment
Share on other sites

  • Developers

Changing the post and deleting replies is normally a good sign that something is wrong.

Topic closed for the stated reason.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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