Results 1 to 13 of 13

Thread: Súper Slow Mouse?

  1. #1
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default READ MY LAST POST, Need help with IsUpText.

    When i do
    SCAR Code:
    Mouse(x, y, true);
    The mouse goes like 1 pixel per second.
    Also with
    SCAR Code:
    MMouse(x, y, rx, ry);

    Can someone help me with this?

    And can someone help me with
    SCAR Code:
    FindText(var  cx, cy: Integer; txt: String; font, xs, ys, xe, ye: Integer): Boolean;
    I have no clue how to use it, because now my AutoMiner also clicks on dwarves and scorpions.

    Help me out!
    Ce ne sont que des gueux


  2. #2
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Help me plz
    Ce ne sont que des gueux


  3. #3
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    first we need to include srl so after

    SCAR Code:
    program lalallala;//we put
    {.include srl/srl.scar}

    and in the mainloop we need to setup srl so this..

    SCAR Code:
    //mainloop
    Begin
      SetUpSRL;
      yourprocedures;
    end.

  4. #4
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Ah, i forgot SetUpSRL..
    Ce ne sont que des gueux


  5. #5
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yes, its working now?

  6. #6
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    i was gone for couple of mins, i g2g again in a few mins, hten im gone until.. maybe 3 hrs
    Ce ne sont que des gueux


  7. #7
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    but is it working? it takes you like 5 secs?

  8. #8
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    EDIT: Dont work yet
    Ce ne sont que des gueux


  9. #9
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    And, with the
    SCAR Code:
    FindText
    , or is it
    SCAR Code:
    IsUpText
    Ce ne sont que des gueux


  10. #10
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    if you move the mouse to somthing and you want to find the text in the left corner(upper) then you need
    SCAR Code:
    if isuptext('ine') then

    but i wanna know is the mouse now moving faster?
    do you got the newest srl and scar?

  11. #11
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    358
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    If you want the mouse to move considerably faster, chuck this at the start of your main loop.

    MouseSpeed := 40;

    Play around with the integer until you find something that suites your script.

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

    Default

    You need the right ammount of parameters for mouse();
    it is
    SCAR Code:
    Mouse(x, y, rx, ry, true);
     
    //ex
    Mouse(100, 200, 1, 1, true);
    EDIT: also the MouseSpeed is supposed to be 15 by default. (which is plenty fast enough). but its nice to know that you can make it go faster.
    ~ Metagen

  13. #13
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    The mousespeed is fixed now, im just a bit confused with the Txt

    So for the text, E.X i make:
    SCAR Code:
    FindColor(x, y, COLOR, 0, 0, 1280, 1024);
    MMouse(x, y, 1, 1, );
    if IsUpText('ine') then
    Mouse(x, y, 1, 1, true);

    ?
    Ce ne sont que des gueux


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
  •