Element17
2013-02-16 18:36:47
[ATTACH=CONFIG]19217[/ATTACH]
I have trying to click the far left one which is the enchanter one, but use ACA its all to common. How can I sort it out so that it only picks the one on the left? Also is there a way to store those cords that it found it?
This is what I currently have, and it spam moves the mouse for about three seconds then it does end up landing on the correct one, but looks crazy with the mouse moving all over the screen.
I have trying to click the far left one which is the enchanter one, but use ACA its all to common. How can I sort it out so that it only picks the one on the left? Also is there a way to store those cords that it found it?
This is what I currently have, and it spam moves the mouse for about three seconds then it does end up landing on the correct one, but looks crazy with the mouse moving all over the screen.
Function FindPortal(var x, y: Integer): Boolean;
Var CTS, I: Integer; TPA: TPointArray; ATPA: Array of TPointArray;
Begin If(Not(LoggedIn))Then Exit;
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.26, 0.96);
FindColorsSpiralTolerance(MSCX, MSCY, TPA, 5271937, MSX1, MSY1, MSX2, MSY2, 10);
ATPA := TPAToATPAEx(TPA, 20, 20);
For I := 0 To High(ATPA) Do
Begin MiddleTPAEx(A
TPA[i], x, y);
MMouse(x, y, 2, 2);
//If DeBug Then
//Smart_DebugATPA(True, ATPA);
If(IsUpTextMultiCustom(['Ench','ters'])) Then
Begin Writeln('Found Portal');
GetMousePos(x, y);
Result := True;
Break;
End;
End;
End;