Results 1 to 14 of 14

Thread: Click inventory slot(Need help!)

  1. #1
    Join Date
    Feb 2012
    Posts
    78
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Click inventory slot(Need help!)

    Hiya guys,

    Currently making my first script and have found that i need to click in an inventory slot.

    I have searched for the past hour trying to find how i would script this and not found anything.

    Any help much appreciated

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Always the same slot?
    Slot with a certain item in it?
    Slot with any item at all in it?

  3. #3
    Join Date
    Feb 2012
    Posts
    78
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I need to click a slot with an item in,

    I'm trying to make an alcher, This is the first time i have EVER tried any form of scripting so i am a big noobie .

    I've managed to get my script to click the high alch but nothing else just yet.

  4. #4
    Join Date
    Jul 2008
    Posts
    907
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use MouseItem(SlotNumber, Left) SlotNumber must be an integer between 1-28 (read left to right, row by row for inventory position) and Left must be a boolean regarding whether or not you want to left click.


  5. #5
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    If it's alwas same slot, just use coordinates
    Mouse(X, Y, 5, 5, True) (Replace X and Y with it's coordinates)

    Ideally line up the item with where the alch spell is, so you just have to click same spot over and over.

  6. #6
    Join Date
    Feb 2012
    Posts
    78
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    So like


    MouseItem(4, True);

    or

    MouseItem(4, Left);

    Again sorry for being complete noob

  7. #7
    Join Date
    Jul 2008
    Posts
    907
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Brow View Post
    So like


    MouseItem(4, True);

    or

    MouseItem(4, Left);

    Again sorry for being complete noob
    First one, and don't be apologising, everyone starts somewhere.


  8. #8
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Something like that yeah, type MouseItem into the function list search box on left side of simba and double click it and you can see how it works.

    Coordinate click would be faster (barely) though .
    But with mouseitem it's better for users, so they can have any inv setup and just enter which slot to click.

  9. #9
    Join Date
    Jul 2008
    Posts
    907
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Something like that yeah, type MouseItem into the function list search box on left side of simba and double click it and you can see how it works.

    Coordinate click would be faster (barely) though .
    But with mouseitem it's better for users, so they can have any inv setup and just enter which slot to click.
    Plus it's part of SRL, which you have to utilise well if you ever apply to members, better to know all you can about it.


  10. #10
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Would be more impressive to make own functions! But yeah Mouse/InvMouse are both simple , and SRL knowledge is important.

  11. #11
    Join Date
    Dec 2011
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What I get a type mismatch from using this:

    procedure click;
    begin
    MouseItem(1, true);
    end;
    'Type mismatch at line 216' :'(

  12. #12
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

    Quote Originally Posted by i need to bot! View Post
    What I get a type mismatch from using this:

    procedure click;
    begin
    MouseItem(1, true);
    end;
    'Type mismatch at line 216' :'(
    Please people.. Don't give him false information!


    MouseItem and how to use it.

    MouseItem(1, mouse_Right) Will click first Inv slot with Right click.
    If you wan't to do left click, you do mouse_Left.

    ~Home

  13. #13
    Join Date
    Dec 2011
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks home

  14. #14
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Something like that yeah, type MouseItem into the function list search box on left side of simba and double click it and you can see how it works.

    Coordinate click would be faster (barely) though .
    But with mouseitem it's better for users, so they can have any inv setup and just enter which slot to click.
    coordinates are worse if he uses your suggestion.
    it's barely random and it would only ADD to the coords...

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
  •