Results 1 to 4 of 4

Thread: Having The Hardest Time With MouseSlot

  1. #1
    Join Date
    Jan 2009
    Location
    Tacoma,Wa
    Posts
    338
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default Having The Hardest Time With MouseSlot

    So I am making a simple script which makes summer pies, it was working good, but randomly it broke.

    Simba Code:
    if tabBackpack.mouseSlot(1, MOUSE_MOVE) then
        begin
          writeLn('Crafting Pies');
          wait(randomRange(500, 1000));
          fastClick(Mouse_Left);
          tabBackpack.mouseSlot(16, MOUSE_MOVE);
          fastClick(Mouse_Left);
          wait(randomRange(2000, 3000));
        end

    Everytime I use the

    Code:
    tabBackpack.mouseSlot(1, MOUSE_MOVE)
    to move the mouse to a inventory slot, it seems to want to just keep clicking the Backpack Icon saying

    Code:
    ---- TRSGameTab.__initTabs(): Setup gametab properties
    -- TRSGameTabs.openTab(2)
    ---- Opening tab via gametab navigation bar
    There is no reason for it to open the Backpack Tab when it's already open, and when it does open the backpack bag, it doesnt even recognize the backpack so it just keeps opening and closing it.

    I made sure my graphics and Interface were setup correctly, I restarted SMART and Simba, I've looked over everything in the area of the script where it does this. This was working perfectly, but randomly stopped.
    Last edited by ffcfoo; 02-06-2016 at 07:49 PM.

  2. #2
    Join Date
    Dec 2013
    Location
    Pitcairn Island
    Posts
    288
    Mentioned
    20 Post(s)
    Quoted
    166 Post(s)

    Default

    Quote Originally Posted by ffcfoo View Post
    So I am making a simple script which makes summer pies, it was working good, but randomly it broke.

    Simba Code:
    if tabBackpack.mouseSlot(1, MOUSE_MOVE) then
        begin
          writeLn('Crafting Pies');
          wait(randomRange(500, 1000));
          fastClick(Mouse_Left);
          tabBackpack.mouseSlot(16, MOUSE_MOVE);
          fastClick(Mouse_Left);
          wait(randomRange(2000, 3000));
        end

    Everytime I use the

    Code:
    tabBackpack.mouseSlot(1, MOUSE_MOVE)
    to move the mouse to a inventory slot, it seems to want to just keep clicking the Backpack Icon saying

    Code:
    ---- TRSGameTab.__initTabs(): Setup gametab properties
    -- TRSGameTabs.openTab(2)
    ---- Opening tab via gametab navigation bar
    There is no reason for it to open the Backpack Tab when it's already open, and when it does open the backpack bag, it doesnt even recognize the backpack so it just keeps opening and closing it.

    I made sure my graphics and Interface were setup correctly, I restarted SMART and Simba, I've looked over everything in the area of the script where it does this. This was working perfectly, but randomly stopped.
    You do have more than one tab open, right?

  3. #3
    Join Date
    Jan 2009
    Location
    Tacoma,Wa
    Posts
    338
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Quote Originally Posted by TSN View Post
    You do have more than one tab open, right?
    Yes, I tried it with Inventory only open and with others open.

    EDIT: Having multiple Tabs Fixes it, but every 3rd or 4th repeat of this script it will click the first inventory item like it should, but then goes to try and open the Backpack when it is already open.

    It's just that sometimes it cannot detect the Tab being open so it tries to open it, but when you open an already open tab it closes it, so when it clicks it again to open, it will then detect the BackPack being open losing 5 - 10 seconds of time.
    Last edited by ffcfoo; 02-06-2016 at 10:53 PM.

  4. #4
    Join Date
    Dec 2013
    Location
    Pitcairn Island
    Posts
    288
    Mentioned
    20 Post(s)
    Quoted
    166 Post(s)

    Default

    Quote Originally Posted by ffcfoo View Post
    Yes, I tried it with Inventory only open and with others open.

    EDIT: Having multiple Tabs Fixes it, but every 3rd or 4th repeat of this script it will click the first inventory item like it should, but then goes to try and open the Backpack when it is already open.

    It's just that sometimes it cannot detect the Tab being open so it tries to open it, but when you open an already open tab it closes it, so when it clicks it again to open, it will then detect the BackPack being open losing 5 - 10 seconds of time.
    Maybe when you are hovering the item in slot 1, the tooltip is covering the backpack icon (so the script doesn't recognize it is open). If that is the case, move the backpack tab over, or use a different slot?

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
  •