Results 1 to 14 of 14

Thread: im have problems with all the mouse procedures

  1. #1
    Join Date
    Nov 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default im have problems with all the mouse procedures

    basicly everytime i use a mouse procedure EG mmouse,mouse etc they work but they move the mouse very very slowly. Is there a way to fix this?

    thanks, fooktard.

  2. #2
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    mousespeed := 50;

    (your mouse will move very fast if u stick that in)

    EDIT: i thought this merited the word INSANELY fast
    ~ Metagen

  3. #3
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    You will also be banned very fast. Mouse speed is generally set to 15.
    STOP PM'ING ME

  4. #4
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Lol... oops i said that u shouldnt be putting it over 25 didnt i?
    ~ Metagen

  5. #5
    Join Date
    Nov 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    come someone show me an example of where i should declare the mouse speed in the script?

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

    Default

    You can either..

    SCAR Code:
    program new;

    const
    MouseSpeed = 15;

    begin
    end.

    or..

    SCAR Code:
    program new;

    begin
    MouseSpeed:=15;
    end.

    Notice the difference. := and =

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

  7. #7
    Join Date
    Nov 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok thank u i got 1 error with my script when i put the mousespeed into my script, heres the script and error.

    Code:
    //shell
    program catherbylobbanker;
    {.include SRL/SRL.scar}
    var
    username, password:string;
    
    procedure login;
    begin
    MouseSpeed:=15;
    username:=readln('please enter your username');
    password:=readln('please enter your password');
    mouse(249, 311,true);
    wait(500)
    SendText(username +chr(13));
    wait(500)
    SendText(password);
    mouse(408, 273,true);
    end
    
    //mainloop
    begin
    login;
    end.
    error = Failed when compiling
    Line 12: [Error] (14698:21): Invalid number of parameters in script C:\Users\Gary\Documents\Scripts\catherbylobbanker\ shell.scar

  8. #8
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Mouse(249, 311, 0, 0, true);
    ~ Metagen

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

    Default

    Quote Originally Posted by metagen View Post
    SCAR Code:
    Mouse(249, 311, 0, 0, true);
    SCAR Code:
    {*******************************************************************************
    procedure Mouse(mousex, mousey, ranx, rany: Integer; left: Boolean);
    By: Mutant Squirrle
    Description: Moves then clicks mouse.
    *******************************************************************************}


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

  10. #10
    Join Date
    Nov 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok corrected that, same script
    Code:
    //shell
    program catherbylobbanker;
    {.include SRL/SRL.scar}
    var
    username, password:string;
    
    procedure login;
    begin
    MouseSpeed:=15;
    username:=readln('please enter your username');
    password:=readln('please enter your password');
    mouse(249, 311, 0, 0,true);
    wait(500)
    SendText(username +chr(13));
    wait(500)
    SendText(password);
    mouse(408, 273, 0, 0,true);
    end
    
    //mainloop
    begin
    login;
    end.
    new error = Line 21: [Error] (14702:1): Semicolon (';') expected in script C:\Users\Gary\Documents\Scripts\catherbylobbanker\ shell.scar

  11. #11
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    line 21: end; <- semicolon

    [Error] (14702:1): Semicolon (';') expected in script

    ummmm well now you know what that means.
    ~ Metagen

  12. #12
    Join Date
    Nov 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by metagen View Post
    line 21: end; <- semicolon

    [Error] (14702:1): Semicolon (';') expected in script

    ummmm well now you know what that means.
    weird, end was on line 18

    ok it works now :P thanks

  13. #13
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No problem
    ~ Metagen

  14. #14
    Join Date
    Nov 2006
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Also, just a tip, you should use the SRL login procedure, its alot easier.

    SCAR Code:
    Procedure DeclarePlayers;                                      //
      begin                                                        //
        HowManyPlayers  :=1;                                       //
        NumberOfPlayers(HowManyPlayers);                           //
        CurrentPlayer:=0;                                          //
                                                                   //
        Players[0].Name :=' '; //Username                           //
        Players[0].Pass :=' '; //Password                           //
        Players[0].Nick :=' '; // 3 letters in the middle of your name
        Players[0].Active:=True;                                   //
      end;

    then

    SCAR Code:
    begin
        cleardebug; // i dont like messy debugs :S
        SetupSRL;
        DeclarePlayers;
        activateclient;
        wait(1000);
        loginplayer;
      end.
    http://i36.photobucket.com/albums/e4...mer/quake1.jpg
    Possible Projects in the Future
    Snape grass collector + banker

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Human Mouse Procedures
    By Skepsis in forum Research & Development Lounge
    Replies: 7
    Last Post: 01-23-2008, 03:53 AM
  2. MMouse/Mouse Procedures
    By snuwoods in forum OSR Help
    Replies: 5
    Last Post: 02-05-2007, 09:21 PM

Posting Permissions

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