Results 1 to 4 of 4

Thread: ItemActivated not working?

  1. #1
    Join Date
    Oct 2011
    Posts
    207
    Mentioned
    1 Post(s)
    Quoted
    20 Post(s)

    Default ItemActivated not working?

    Hello, I use it in loop so the waiting stops when item is activated but its not working for me.

    edit:
    Sorry its working ,just for 1st slot where are noted items its not working...
    Last edited by djborec; 02-06-2012 at 04:25 PM.

  2. #2
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Can you post the code you're using it with? It's working fine for me.

  3. #3
    Join Date
    Oct 2011
    Posts
    207
    Mentioned
    1 Post(s)
    Quoted
    20 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    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


    Simba Code:
    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));

  4. #4
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Oh, your item is noted! Just tested and that doesn't work for me either. I'll see what I can do.

    E: Fixed in the next version.
    Last edited by Coh3n; 02-07-2012 at 01:00 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •