idk if this belongs somewhere else, but im new to scripting, and i just need to know what you do to make the script click a certain color/bitmap
thanks![]()
idk if this belongs somewhere else, but im new to scripting, and i just need to know what you do to make the script click a certain color/bitmap
thanks![]()
Something like that.SCAR Code:if FindColorSpiralTolerance(x, y, color, MSX1, MSY1, MSX2, MSY2, {tol}) then
Mouse(x, y, 2, 2, True);
if FindBitmapToleranceIn(bitmap, x, y, MIX1, MIY1, MIX2, MIY2, {tol}) then
Mouse(x, y, 2, 2, True);![]()
thanks![]()
What Chris said are two good functions, but with your post count as 4 I don't think you know what it means =). FindColorSpiralTolerance searches for the specified color by "spiraling" from the middle of the points specified and searches from there. Tolerance is if the color can vary a bit. A lower tolerance tells the function that there should be little (if any) color variation and vice versa. MSX1, MSY1, MSX2, MSY2 are coordinates for the main screen. They are SRL coordinates that pinpoint the exact coordinates that make up the Main Screen of Runescape. Likewise there are other SRL coordinates like MIX1,MIY1... that are for other things like the inventory. MMX1(Minimap), etc. The second function finds a bitmap image in a certain area and certain tolerance like before. I suggest you read WhoCares357's tutorial for a more indepth tutorial to color/bitmap/DTM finding
Forgive me if you knew this already.
There are currently 1 users browsing this thread. (0 members and 1 guests)