Results 1 to 10 of 10

Thread: Scripting Question - Mouse twiching

  1. #1
    Join Date
    Jan 2007
    Location
    Hamilton, New Zealand
    Posts
    177
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Scripting Question - Mouse twiching

    Ever noticed when your running scripts that the mouse moves somewhere, seems to check the up text, then clicks. But the click is in a slightly different position to the move which results in the mouse 'twitching' effect. This is an example of where it can be found.

    SCAR Code:
    Findbitmap(x, y, bitmap); // W/e the function is, just an example
    MMouse(x, y, 5, 5);
    If (uptext('sexy ss23') then
    Begin
      Mouse(x, y, 5, 5, True);
      Writeln('Yahs for sexy ss23!!!');
    end else
      Writeln('Fail');

    Now the problem arises where you move the mouse with random ness, and click with random ness. It makes problems.
    The first (but wrong) soloution would be having the second click as (x, y, 0, 0, True) but this will fail too, as the random ness moving there will be useless, and the mouse will twitch back to the perfect place anyway.

    The so called 'proper' soloution would be this

    SCAR Code:
    Findbitmap(x, y, bitmap); // W/e the function is, just an example
    MMouse(x, y, 5, 5);
    If (uptext('sexy ss23') then
    Begin
      GetMousePos(x, y);   // This ensures that we click in exactly the same place, while still retaining a 'random' click
      Mouse(x, y, 0, 0, True);
      Writeln('Yahs for sexy ss23!!! (Without twitching this time :)');
    end else
      Writeln('Fail');

    My question is, does this matter for scripts? Is there an inceased chance of being banned etc. Whenever I script, I try to avoid this as I would think it would increase ban chances etc.

    Does it?

    And also, its also annoying with the mouse twitching. Makes me annoyed, but thats just me
    <3 Delicious Loli
    15:59 [Putnam] I suck
    15:59 * ss23 pushes Putnam to his knees - Prove it.
    15:59 [Putnam] ss23, there's really no other way to stay fit in this town

  2. #2
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i would say it doent, as when you click the mouse there is a change that you will slighly move it a pixel or two anyways.

    but thats just my thought

  3. #3
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    This is a bug in SCAR that Freddy1990 already has fixed as far as I know, and it the fix will be in the next SCAR.

    (It is SCAR that makes clicking go one or two pixels off.)

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

    Default

    Here is your problem . You have random coords for your MMouse, so that moves the mouse to one place, then you have exact coords for your mouse, so unless you mmouse landed perfectly its going to twitch back to perfect and click. you have to use getmousepos(x,y) mouse(x,y,0,0,w/e).

    EDIT: OHHHHHH yea i know what you are talking about now. the 1 pixel twitch thing? yea thats a problem . I have ashamed scapers signature.
    ~ Metagen

  5. #5
    Join Date
    May 2007
    Location
    Netherlands, Amersfoort
    Posts
    2,701
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    It would be very very hard to make a mouse moving procedure that Follows the object that you want to click

    any idees yet?

    Edit:

    maybe something like: move the mouse a lil bit in the good derection, then check where the object is, move the mouse a lil again, then check object ect. But It would be very hard to make that so fast that the mouse looks like its moving "smooth"

  6. #6
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Yes you need to call GetMousePos after you MMouse with randomness to check for uptext. It would look strange if you move the mouse to one spot then click at another.

    I also believe there was a small bug with the mouse clicking/holding/releasing procedures in SCAR that made it click a few pixels off. This has been fixed in the next version of SCAR.

  7. #7
    Join Date
    Jan 2007
    Location
    Hamilton, New Zealand
    Posts
    177
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ZephyrsFury View Post
    Yes you need to call GetMousePos after you MMouse with randomness to check for uptext. It would look strange if you move the mouse to one spot then click at another.
    Yep thats what I said...

    Anyway, the question I was asking was, does it improve your chances of being banned or anything like that?
    <3 Delicious Loli
    15:59 [Putnam] I suck
    15:59 * ss23 pushes Putnam to his knees - Prove it.
    15:59 [Putnam] ss23, there's really no other way to stay fit in this town

  8. #8
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ss23-
    Sometimes when I move my mouse, I "miss" where I want it to go so I do have a twitch to get it back to the right spot. But I see your point, it is a bit not human to do it every time. If your worried about it, simply do what you did in your first post.

    Quote Originally Posted by M4st3rK1ll View Post
    It would be very very hard to make a mouse moving procedure that Follows the object that you want to click

    any idees yet?

    Edit:

    maybe something like: move the mouse a lil bit in the good derection, then check where the object is, move the mouse a lil again, then check object ect. But It would be very hard to make that so fast that the mouse looks like its moving "smooth"
    Little off topic but a good point

    I wonder if there is a way to find the color while the mouse is moving. Then, the mouse wouldn't have to stop.

  9. #9
    Join Date
    Oct 2007
    Location
    If (Online) then Loc := ('On comp') else Loc := ('Somewhere else!');
    Posts
    2,020
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Metagen View Post
    Here is your problem . You have random coords for your MMouse, so that moves the mouse to one place, then you have exact coords for your mouse, so unless you mmouse landed perfectly its going to twitch back to perfect and click. you have to use getmousepos(x,y) mouse(x,y,0,0,w/e).

    EDIT: OHHHHHH yea i know what you are talking about now. the 1 pixel twitch thing? yea thats a problem . I have ashamed scapers signature.
    hehe lol tutut

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

    Default

    Quite honestly, i think jagex, if they did watch your mouse move, they wouldnt have it THAT exact... honestly think of the bandwidth... you dont even send packets that fast.
    ~ Metagen

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Question about scripting
    By XxsomethingxX in forum OSR Help
    Replies: 2
    Last Post: 03-06-2008, 07:18 PM
  2. question about scripting
    By OwnedPl0x?!?! in forum OSR Help
    Replies: 1
    Last Post: 11-14-2007, 01:43 PM
  3. Scripting question
    By mohua in forum OSR Help
    Replies: 8
    Last Post: 10-18-2006, 11:25 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
  •