Results 1 to 4 of 4

Thread: SMART Mouse lag

  1. #1
    Join Date
    Jan 2012
    Posts
    1,104
    Mentioned
    18 Post(s)
    Quoted
    211 Post(s)

    Default SMART Mouse lag

    Hi guys.
    I just made an own superheater, it works flawless except one thing. When it does the superheating and I do minimaze/maximaze it to/from the taskbar, the mouse gets a lag, and SKIPS the click.

    Simba Code:
    for i:=1 to 17 do
      begin
        MouseBox(664,390,674,403,mouse_left);  //this will click on superheat spell
        repeat until FindBitmapToleranceIn(nat, x, y, MIX1, MIY1, MIX2, MIY2, 30)  //this will check for inventory tab
        MouseBox(655,368,670,380,mouse_left);  //this will click on ore
        repeat until FindBitmapToleranceIn(supheat, x, y, MIX1, MIY1, MIX2, MIY2, 30)  //this will check for spellbook tab
        Xp:=XP+53;
        Profit:=Profit+ProfitEach;
        ReportOnSmart;
      end;
    Here is the code. It will click on supheat spell, wait till sees the inventory, then click on the chosen ore. But sometimes it skips the click and then the bot stucks in the repeat thing. Any ideas how to solve this?
    Thanks,
    hunt3rx3
    Last edited by Shatterhand; 01-28-2012 at 02:03 PM.

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    It's because smart is losing focus every time you minimize and set to the foreground.. It was fixed in 6.7.. but I have no clue what happened in 6.9..

    The below should make it keep trying until the item is clicked.. then you can continue on..

    Simba Code:
    while (Not ItemActivated(ItemSlot)) do
    begin
      MouseBox(664,390,674,403,mouse_left); //ItemToClick..
      wait(1000);  //Time to wait between clicks..
      if (ItemActivated(ItemSlot)) then break;
    end;
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Jan 2012
    Posts
    1,104
    Mentioned
    18 Post(s)
    Quoted
    211 Post(s)

    Default

    Quote Originally Posted by ggzz View Post
    It's because smart is losing focus every time you minimize and set to the foreground.. It was fixed in 6.7.. but I have no clue what happened in 6.9..

    The below should make it keep trying until the item is clicked.. then you can continue on..

    Simba Code:
    while (Not ItemActivated(ItemSlot)) do
    begin
      MouseBox(664,390,674,403,mouse_left); //ItemToClick..
      wait(1000);  //Time to wait between clicks..
      if (ItemActivated(ItemSlot)) then break;
    end;
    That would be awesome if we had no focus losing. By the way I solved the problem, it is a good failsafe I think. What do you thinkof it?
    Simba Code:
    for i:=1 to 17 do
      begin

        done:=False;
        Tic:=0;
        MarkTime(Tic);
        repeat
          MouseBox(664,390,674,403,mouse_left);
          repeat
            if FindBitmapToleranceIn(nat, x, y, MIX1, MIY1, MIX2, MIY2, 30) then done:=True;
          until (done) or (TimeFromMark(Tic)>5000)
        until done

        done:=False;
        Tic:=0;
        MarkTime(Tic);
        repeat
          MouseBox(655,368,670,380,mouse_left);
          repeat
            if FindBitmapToleranceIn(supheat, x, y, MIX1, MIY1, MIX2, MIY2, 30) then done:=True;
          until (done) or (TimeFromMark(Tic)>5000)
        until done

        Xp:=XP+53;
        Profit:=Profit+ProfitEach;
        ReportOnSmart;
      end;

  4. #4
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Hmm you might want to try compiling that and running it..
    I am Ggzz..
    Hackintosher

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
  •