sanjarmax1 Posted August 25, 2014 Share Posted August 25, 2014 Hey guys, i'm kind of new in this Scar macro thing and i need some help.. i was trying to make my own macro for a game and i made this script : begin Wait(2000) ClickMouse(15, -74, False) if FindColorTPA(61, 153, 15856113, False) then ClickMouse(61, 153, False) end. now when i press start it gives me an error of Variable Expected in line 4 where i wrote the number "6" please help me as soon as possible ! thank you very much !! Quote Link to comment Share on other sites More sharing options...
Neron Posted August 25, 2014 Share Posted August 25, 2014 (edited) hi! First. clickmouse with negative num will not do any good and must be Clickmouse(x,y,mbLeft) or Clickmouse(x,y,mbRight) secont. most search functions in scar use variables to store coordinates of color or images. function FindColorTPA(out X: longInt; out Y : Longint; Color : LongInt; TPA : Tpointarray): boolean so for that function you ned two integer and one TpointArray variable: Var x,y :Integer; arr : tpointarray; begin.... and i think you shoud use findcolor function Edited August 25, 2014 by Neron Quote Link to comment Share on other sites More sharing options...
sanjarmax1 Posted August 31, 2014 Author Share Posted August 31, 2014 hi!First. clickmouse with negative num will not do any good and must be Clickmouse(x,y,mbLeft) or Clickmouse(x,y,mbRight) secont. most search functions in scar use variables to store coordinates of color or images. function FindColorTPA(out X: longInt; out Y : Longint; Color : LongInt; TPA : Tpointarray): boolean so for that function you ned two integer and one TpointArray variable: Var x,y :Integer; arr : tpointarray; begin.... and i think you shoud use findcolor function wow i did not understood anything lol .. is there a function of only findcolor without the TPA ? i dont understand what is integer and how i need to find two of those (?) and why i cant use : ClickMouse(x,y,False) action and i have to do with mbRight or mbLeft ? thanks for helping ! Quote Link to comment Share on other sites More sharing options...
Neron Posted September 1, 2014 Share Posted September 1, 2014 wow i did not understood anything lol .. is there a function of only findcolor without the TPA ? i dont understand what is integer and how i need to find two of those (?)and why i cant use : ClickMouse(x,y,False) action and i have to do with mbRight or mbLeft ? thanks for helping ! you must learn basic mouse: http://wiki.scar-divi.com/ClickMouse integer: http://wiki.scar-divi.com/Integer Findcolor http://wiki.scar-divi.com/FindColor Quote Link to comment Share on other sites More sharing options...