Results 1 to 14 of 14

Thread: Move Mouse Doesnt work?

  1. #1
    Join Date
    Jan 2008
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Move Mouse Doesnt work?

    Im making a spam script to get on the stats page on bushtarion, only problem is for some reason my script wont work on the repeat section? does anyone know the problem, im stumped???

    by the way its in the repeat area, the first part works fine...
    and what happens is for sum reason it clicks the exit button...

    SCAR Code:
    program BushtarionSpammer;
    const
      Startup = 5; // Time you have before the program starts (In seconds)
      Load = 10; // The time it takes for your bushtarion web page to load (In seconds)
      ID = 'XXXX'; // This will be typed in the id box.(add commas to seperate multiple id's)
      TheSubject = 'Enter Your Subject.'; // This will be typed in the subject box.
      TheMessage = 'Enter Your Message.'; // This will be typed in the message box.
    begin
      Writeln('The program will start shortly. Change the start time in the settings above');
      Wait(Startup * 1000);
      MoveMouseSmooth(455, 188);
      ClickMouse(455, 188, True);
      SendKeys(ID);
      MoveMouseSmooth(630, 188);
      ClickMouse(630, 188, True);
      SendKeys(TheSubject);
      MoveMouseSmooth(316, 216);
      ClickMouse(316, 216, True);
      SendKeys(TheMessage);
      MoveMouseSmooth(560, 345);
      ClickMouse(560, 345, True);
      Wait(Load * 1000);

      repeat       // PROBLEM STARTS HERE!!!!
      begin
        MoveMouseSmooth(445, 214);
        ClickMouse(445, 214,  True);
        SendKeys(ID);
        MoveMouseSmooth(630, 214);
        ClickMouse(630, 214, True);
        SendKeys(TheSubject);
        MoveMouseSmooth(316, 242);
        ClickMouse(316, 242, True);
        SendKeys(TheMessage);
        MoveMouseSmooth(560, 371);
        ClickMouse(560, 371, True);
        Wait(Load * 1000);
      end;
      until(false);
    end.

  2. #2
    Join Date
    Aug 2007
    Location
    Vancouver
    Posts
    394
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    repeat should come after the begin

  3. #3
    Join Date
    Jan 2008
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It didn't work? its still stuffing up?
    i noticed that when the page took a while to load the next part ran normally because i saw it type in, i ran the script again (when it loaded normally) and its still stuffing up?

    does scar forget about the window if it changes?

  4. #4
    Join Date
    Dec 2007
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Repeat should not come after the begin.

    I don't quite get your problem.. Is the problem that it clicks the exit-button? If it's a button on the webpage just check your x and y coordinates.
    This sentence is false.

  5. #5
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    As Gumleren said, it should only click on the exit button if your co-ords are wrong. If you are sure they're right, then it might be that the button moves places (in which case you need to setup a bitmap/DTM to find the button).

  6. #6
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You should be using MMouse anyway.
    MMouse(x, y, 1, 1);
    Mouse(x, y, 1, 1, True);
    That stuff you're using is ancient.
    Active only during the Summer...

  7. #7
    Join Date
    Jan 2007
    Location
    Skaville, Jamaica
    Posts
    1,117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by JackLKrawl View Post
    You should be using MMouse anyway.
    MMouse(x, y, 1, 1);
    Mouse(x, y, 1, 1, True);
    That stuff you're using is ancient.
    He's not doing this for Runescape...

  8. #8
    Join Date
    Jan 2008
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Gumleren View Post
    I don't quite get your problem.. Is the problem that it clicks the exit-button? If it's a button on the webpage just check your x and y coordinates.
    It is clicking the Windows Exit Button, the co-ords are fine, ive checked it about 20 times...

    Quote Originally Posted by Dangerous Garden Tools View Post
    repeat should come after the begin
    Repeat should not come after the begin.
    Is it after or before?

    Quote Originally Posted by IEatJ00erBaybees View Post
    Quote Originally Posted by JackLKrawl View Post
    You should be using MMouse anyway.
    MMouse(x, y, 1, 1);
    Mouse(x, y, 1, 1, True);
    That stuff you're using is ancient.
    He's not doing this for Runescape...
    Whats different about it?

  9. #9
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Repeat comes before the Begin, as Repeat is what makes you need the begin (well, standard wise).

    MMouse and Mouse aren't any different compared to MoveMouseSmooth and ClickMouse, as it isn't a RS script, so you're OK to stick with them.

    If it's clicking the windows close button, then try to be more accurate with which line it's going wrong on. If you manually set the windows size (with the crosshair) then make sure none of your co-ords are outside the window. If it isn't that, then try using just MoveMouse. If it still doesn't work after that, then I'm stumped.

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

    Default

    Try not selecting a client and getting the Co-ords from that.
    If you've selected the client as something on the page and the page changes or refreshes then it is messed.
    But it depends what you've selected.
    But other then that I don't see anything noticeably wrong.
    STOP PM'ING ME

  11. #11
    Join Date
    Jan 2008
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm going to re type the whole thing, again...
    i'll try it without the window.
    I should probably say again, the page was slow loading once and i saw the next part work fine, it's defiantly after it refreshes?

  12. #12
    Join Date
    Jan 2008
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It is after it refreshes, i made it as simple as possible! It clicks the exit button after it auto sends its first one!
    (and i need to drag the cursor on the screen or i can't run it on my other computers...)
    SCAR Code:
    program BushtarionSpammer;
    const
      Startup = 5; // Time you have before the program starts (In seconds)
      ID = 'xxxx'; // This will be typed in the id box.(add commas to seperate multiple id's)
      TheSubject = 'Enter the subject here.'; // This will be typed in the subject box.
      TheMessage = 'Enter the message here.'; // This will be typed in the message box.
    begin
    repeat
      Wait(Startup * 1000);
      MoveMouseSmooth(445, 214);
      ClickMouse(445, 214,  True);
      SendKeys(ID);
      MoveMouseSmooth(630, 214);
      ClickMouse(630, 214, True);
      SendKeys(TheSubject);
      MoveMouseSmooth(316, 242);
      ClickMouse(316, 242, True);
      SendKeys(TheMessage);
      MoveMouseSmooth(560, 371);
      ClickMouse(560, 371, True);
    until(false);
    end.

    Here, i took out the code which clicks the submit button and it works fine? (and there is nothing wrong with the submit button, it sends fine)

  13. #13
    Join Date
    Jan 2007
    Location
    Skaville, Jamaica
    Posts
    1,117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by boomhowza View Post
    It is after it refreshes, i made it as simple as possible! It clicks the exit button after it auto sends its first one!
    (and i need to drag the cursor on the screen or i can't run it on my other computers...)
    SCAR Code:
    program BushtarionSpammer;
    const
      Startup = 5; // Time you have before the program starts (In seconds)
      ID = 'xxxx'; // This will be typed in the id box.(add commas to seperate multiple id's)
      TheSubject = 'Enter the subject here.'; // This will be typed in the subject box.
      TheMessage = 'Enter the message here.'; // This will be typed in the message box.
    begin
    repeat
      Wait(Startup * 1000);
      MoveMouseSmooth(445, 214);
      ClickMouse(445, 214,  True);
      SendKeys(ID);
      MoveMouseSmooth(630, 214);
      ClickMouse(630, 214, True);
      SendKeys(TheSubject);
      MoveMouseSmooth(316, 242);
      ClickMouse(316, 242, True);
      SendKeys(TheMessage);
      MoveMouseSmooth(560, 371);
      ClickMouse(560, 371, True);
    until(false);
    end.

    Here, i took out the code which clicks the submit button and it works fine? (and there is nothing wrong with the submit button, it sends fine)
    Glad to see it works out for you.

  14. #14
    Join Date
    Jan 2008
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by IEatJ00erBaybees View Post
    Glad to see it works out for you.
    as in thats when i don't send, it keeps typing, if it does send then it stuffs up...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mouse Doesnt Move
    By Nite Elf in forum OSR Help
    Replies: 12
    Last Post: 03-19-2008, 12:05 AM
  2. My script doesnt move!
    By Rora in forum OSR Help
    Replies: 2
    Last Post: 12-07-2007, 08:12 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
  •