FHannes Posted July 23, 2012 Share Posted July 23, 2012 (edited) The first alpha version of SCAR Divi 3.36 is now available, currently only some new functions. Regular: http://svn.scar-divi.com/scar/ Portable: http://svn.scar-divi.com/scar_portable/ Setup instructions: http://forums.scar-divi.com/showthread.php?505-Downloading-SCAR-Divi-Prerelease Changelog: New: - function FindColorsTPA(out X, Y: Integer; const Colors: TIntArray; const TPA: TPointArray): Boolean; - function FindColorsTPATol(out X, Y: Integer; const Colors: TIntArray; const TPA: TPointArray; const Tol: Integer): Boolean; - function FindColorsTPAEx(out Points: TPointArray; const Colors: TIntArray; const TPA: TPointArray): Boolean; - function FindColorsTPATolEx(out Points: TPointArray; const Colors: TIntArray; const TPA: TPointArray; const Tol: Integer): Boolean; - function GetActiveWindow: Hwnd; - procedure InvertTPA(var TPA: TPointArray); Improvements: - procedure MoveMouseEx(const X, Y, MouseSpeed: Integer); - InvertTPA => ReverseTPA - InvertTIA => ReverseTIA - Default mousespeed changed from 25 to 20 Enjoy ~Freddy Edited September 7, 2012 by Freddy Quote Link to comment Share on other sites More sharing options...
Janilabo Posted July 23, 2012 Share Posted July 23, 2012 Sweeet! With this version you probably wont be editing changelog so much (as with 3.35), but I hope this brings something good aswell with it.. Quote Link to comment Share on other sites More sharing options...
LordJashin Posted July 24, 2012 Share Posted July 24, 2012 Sweeet!With this version you probably wont be editing changelog so much (as with 3.35), but I hope this brings something good aswell with it.. Yeah right, ever since 3.35 Freddy has totally changed he's madly in love with that change log... Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted July 24, 2012 Share Posted July 24, 2012 Already? Man oh man you are fired up lately. Quote Link to comment Share on other sites More sharing options...
FHannes Posted July 24, 2012 Author Share Posted July 24, 2012 Already? Man oh man you are fired up lately. I'm entering a rather busy period for me, so development will be slowing down for a while, but I'll be working on the manual quite a lot, as there's a lot of new stuff to document. Quote Link to comment Share on other sites More sharing options...
LordJashin Posted July 24, 2012 Share Posted July 24, 2012 I'm entering a rather busy period for me, so development will be slowing down for a while, but I'll be working on the manual quite a lot, as there's a lot of new stuff to document. Noooooooooooooooooooooo way. Good idea for the old freddy, but the new one cannot do this . Quote Link to comment Share on other sites More sharing options...
FHannes Posted September 7, 2012 Author Share Posted September 7, 2012 I've uploaded a new copy of the Alpha now that I'm back to developing. This build has all of the fixes from 3.35.02 merged into it, and also 2 important breaking changes. 1 small revision of the new mouse API, the RX and RY parameters haev been removed from MoveMouseEx. And also, InvertTPA has been renamed to ReverseTPA, BUT a new function has been added that is named InvertTPA and it has the same parameters! So if you use InvertTPA, make sure you change it to ReverseTPA! [wiki=InvertTPA]InvertTPA[/wiki] now inverts the TPA by returning all of the points inside of the TPA's bounds that weren't in the TPA. This is an equivalent of the PointsNotInTPA function in OSI, but it is A LOT faster. [scar]var T: Integer; TPA: TPointArray; function PointsNotInTPA(TPA: TPointArray): TPointArray; begin Result := TPAFromBox(TPABounds(TPA)); TPAFilterPoints(Result, TPA); end; begin TPA := RandomTPA(5000, 1000, 1000); T := GetSystemTime; PointsNotInTPA(TPA); WriteLn('PointsNotInTPA: ' + IntToStr(GetSystemTime - T) + 'ms.'); T := GetSystemTime; InvertTPA(TPA); WriteLn('InvertTPA: ' + IntToStr(GetSystemTime - T) + 'ms.'); end.[/scar] PointsNotInTPA: 14087ms. InvertTPA: 46ms. Quote Link to comment Share on other sites More sharing options...
Janilabo Posted September 8, 2012 Share Posted September 8, 2012 Great job & thanks Freddy. You've done some really important/useful improvements to SCAR during today & yesterday! Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted October 4, 2012 Share Posted October 4, 2012 Freddy, whatever did you do to the FindTextTPAInTPA in the latest build of 3.36? It's about 1/10th the speed of 3.35. Quote Link to comment Share on other sites More sharing options...
FHannes Posted October 4, 2012 Author Share Posted October 4, 2012 Freddy, whatever did you do to the FindTextTPAInTPA in the latest build of 3.36? It's about 1/10th the speed of 3.35. FindTextTPAInTPA isn't a SCAR function... Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted October 4, 2012 Share Posted October 4, 2012 FindTextTPAInTPA isn't a SCAR function...Interesting. I'll have to look deeper and figure out why it's so slow under 3.36. I mean we are talking 10x faster (at least) under 3.35. Quote Link to comment Share on other sites More sharing options...
FHannes Posted October 4, 2012 Author Share Posted October 4, 2012 Interesting. I'll have to look deeper and figure out why it's so slow under 3.36. I mean we are talking 10x faster (at least) under 3.35. I've looked into it and the problem is TPAInTPA. I made changes to it to improve it's performance, which obviously had an adverse effect, though I'm not sure why yet. This is however not a recent change. Quote Link to comment Share on other sites More sharing options...