Results 1 to 5 of 5

Thread: How to Add integers to MousePos

  1. #1
    Join Date
    May 2008
    Location
    the world 0_o
    Posts
    150
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How to Add integers to MousePos

    Hey guys so I am trying to add integers to a mouse position.

    For Example:

    Simba Code:
    GetMousePos(x,y);  
    MoveMouse(x+20,y);

    How can I actually do this lol

    Thanks!

  2. #2
    Join Date
    Mar 2008
    Posts
    426
    Mentioned
    1 Post(s)
    Quoted
    116 Post(s)

    Default

    MMouse(x, y, 20, 20);

    Edit: Sorry.. once i posted i realised you are a JRL.. This isn't what you are asking.. lol.

  3. #3
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    I dont see a reason why u cant do x+20 like u did above.
    Edit: but if u really cant... just use an integer variable to hold the value of x+20, then use that variable instead

  4. #4
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Simba Code:
    MMouse((x + 20), y, 0, 0);


    Quote Originally Posted by x[Warrior]x3500 View Post
    I dont see a reason why u cant do x+20 like u did above.
    Edit: but if u really cant... just use an integer variable to hold the value of x+20, then use that variable instead
    He forgot to bracket the math

  5. #5
    Join Date
    May 2008
    Location
    the world 0_o
    Posts
    150
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol yeah, I realized that what I wrote works fine...I'm an idiot. Thanks guys!

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
  •