Results 1 to 5 of 5

Thread: Dragging something across the screen?

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

    Default Dragging something across the screen?

    How do I use the mouse to drag something across the screen?

  2. #2
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    There's a function called DragMouse. Can try using it

  3. #3
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Simba Code:
    HoldMouse(x,y,mouse_left);
    MMouse(newX,newY,5,5);
    GetMousePos(finalX,finalY);
    ReleaseMouse(finalX,finalY,mouse_left);

    Edit:
    oh wait there is DragMouse? use that then

  4. #4
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    Simba Code:
    HoldMouse(x,y,mouse_left);
    MMouse(newX,newY,5,5);
    GetMousePos(finalX,finalY);
    ReleaseMouse(finalX,finalY,mouse_left);

    Edit:
    oh wait there is DragMouse? use that then
    Yup, it's in Mouse.simba, and been there for quite a while.

    @ OP, if you wonder if anymore functions exist, have a quick look in the relevant .simba SRL document to see if what you're after is there
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  5. #5
    Join Date
    Feb 2012
    Location
    SRL Jail
    Posts
    1,319
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Rich View Post
    Yup, it's in Mouse.simba, and been there for quite a while.

    @ OP, if you wonder if anymore functions exist, have a quick look in the relevant .simba SRL document to see if what you're after is there
    Oh how I love reading through the Mouse.simba file. Actually the bank.simba file is my favorite. But yeah, giving the include in general a scanover isn't a terrible idea! Really informant!

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
  •