From: Coh3n
Can you post the code you're using it with? It's working fine for me.
Here is part of script. I simply click on first item in inventory ,which are noted oak logs , then wait until item is Activated . But it never recognise that noted oak logs are selected or activeted ,so it trys to click there again and once again with mouse box and then end script.
I have changed line to
" until (GetColor(564,226)=16777215) or (EndScript); "
which simply check if there is white color at exact place and its working in that way ,so scripts is working with GetColor ,but not with ItemActivated
if not(EndScript) then
begin
SMART_DrawBox(intToBox(560, 210, 600, 240));
InvMouse(1,1);
waitT:=0;
repeat
wait(randomRange(100,150));
inc(waitT);
if ( (waitT mod 6)=0 ) then MouseBox(570,221,583,233,1);
if (waitT)>20 then EndScript:=true;
until ItemActivated(1) or (EndScript);
wait(randomRange(100,150));