Jump to content

Trying to do pixeldistance need help. - (Locked)


 Share

Recommended Posts

HotKeySet ("{f10}","myExit")

WinActivate("MapleStory2 - A New Beginning")
WinMove("MapleStory2 - A New Beginning","",0,0)
while(1)
   $cords = PixelSearch(10,62,1279,832,0xBB6666,1)

   if not(@error) Then
      MouseClick("left",$cords[0],$cords[1],5,1)

      $T_INIT = TimerInit()
Do
Send("{lshift down}")
Until TimerDiff($T_INIT) >= 2000;3000  miliseconds = 3 seconds
Send("{lshift up}")
Sleep(250)
   Else
      ;search
   EndIf
WEnd


Func myExit()
   Exit

This is a script i got for a game, my character is in the center, im trying to get to pixel 0xbb6666 but i wanna make my mouse click it till im in a certain distance, you click to move, so im trying to make it click till im like 3 inches away, then use my lshift down, anyone experience can help me with this? my discord is itzkaydo#0246

Link to comment
Share on other sites

  • Moderators

Welcome to the AutoIt forum.

Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked.

See you soon with a legitimate question I hope.

The Moderation team

"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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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