Results 1 to 4 of 4

Thread: Is there a command for...

  1. #1
    Join Date
    Jun 2007
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Is there a command for...

    is there a command which will move the mouse in comparison to it's last position?

    I don't want to move the mouse to just a direct spot on the screen I want to be able to tell scar i want to move the mouse, for example, 50 pixels left, and 21 pixels up.

    I wanted to know if there was a command for that.

  2. #2
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Wait, I will answer in a second.
    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    var x,y:integer;

    begin
      SetupSRL;
      Wait(1000);
      GetMousePos(x,y);
      MMouse(x-50,y-21,1,1);
    end.
    The X is in relation to the horrisontal plane. The Y is for the verticle plane.

    It will more it to the left 50 pixels and up 21. Enjoy. (I think it will work, I am not all the good with coords

    EDIT2: Sigh. If I say I am gonna help, please don't post after me :O lol


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  3. #3
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    From its current position?

    SCAR Code:
    GetMousePos(x,y);
    MMouse(x-50,y-21,0,0);

    How about that?

    //Edit, Don't post unless you have the help then lol.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  4. #4
    Join Date
    Jun 2007
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks rogerok, i think that's what i was looking for.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. help with command
    By lemonfuzz in forum OSR Help
    Replies: 2
    Last Post: 05-24-2008, 12:02 PM
  2. I need the go to line command!
    By vikrant60 in forum OSR Help
    Replies: 7
    Last Post: 04-26-2008, 11:41 PM
  3. The 'With' Command...
    By Pancakes in forum OSR Help
    Replies: 1
    Last Post: 08-20-2007, 12:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •