Results 1 to 12 of 12

Thread: Script Problems

  1. #1
    Join Date
    Nov 2008
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Script Problems

    Hey everyone, so basically i made this script to do searches for me(google)
    And the script works fine up until where it has to write "Message2" The script clicks in all the right places, but it just keeps typing "Message1" over and over again. How can i get it to type the other messages?
    Thanks.

    SCAR Code:
    program script;
    {.include SRL/SRL.scar}

    const
    Message1='Search1';
    Message2='Search2';

    Procedure Firstclick;
    begin
      MoveMouse(746,71);
      Wait(1000);
      ClickMouse(746,71,true);
    end;


    Procedure BeginTyping;
    begin
       Wait(2000);
     TypeSend(Message1);
       Wait(2000);
     TypeSend(Message2);
    end;

    Procedure Secondclick;
    begin;
      MoveMouse(52,328);
      Wait(3000);
      ClickMouse(52,328,true);
    end;

    begin
     repeat
       Firstclick;
       BeginTyping;
       Secondclick;
     until(false)
    end.

  2. #2
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    im not that sure but this might fix it?:S

    SCAR Code:
    Procedure BeginTyping;
    begin
       Wait(2000);
       if TypeSend(Message1)then
       Wait(2000);
       TypeSend(Message2);
    end;

  3. #3
    Join Date
    Nov 2008
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Dang, it says
    "Failed when compiling
    Line 19: [Error] (16238:22): Type mismatch in script"

    SCAR Code:
    program script;
    {.include SRL/SRL.scar}

    const
    Message1='Test';
    Message2='Text';

    Procedure Firstclick;
    begin
      MoveMouse(746,71);
      Wait(1000);
      ClickMouse(746,71,true);
    end;


    Procedure BeginTyping;
    begin
       Wait(2000);
       if TypeSend(Message1)then
       Wait(2000);
       TypeSend(Message2);
    end;

    Procedure Secondclick;
    begin;
      MoveMouse(52,328);
      Wait(3000);
      ClickMouse(52,328,true);
    end;

    begin
     repeat
       Firstclick;
       BeginTyping;
       Secondclick;
     until(false)
    end.

  4. #4
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm I'll try getting it to work right now.

    Im pretty sure this worked for me.
    SCAR Code:
    Procedure BeginTyping;
    begin
       TypeSend(Message1);
       Wait(2000);
       TypeSend(Message2);
    end;

  5. #5
    Join Date
    Nov 2008
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It works, but it still won't type the second message. Maybe some auto typers would help? idk. Thanks

    ~EliteHacker

  6. #6
    Join Date
    Aug 2008
    Posts
    58
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program script;
    {.include SRL/SRL.scar}

    const
    Message1='Test';
    Message2='Text';

    Procedure Firstclick;
    begin
      MoveMouse(746,71);
      Wait(1000);
      ClickMouse(746,71,true);
    end;


    Procedure BeginTyping;
    begin
       Wait(2000);
       TypeSend(Message1);
       Wait(2000);
       TypeSend(Message2);
    end;

    Procedure Secondclick;
    begin;
      MoveMouse(52,328);
      Wait(3000);
      ClickMouse(52,328,true);
    end;

    begin
     repeat
       setupsrl;
       Firstclick;
       BeginTyping;
       Secondclick;
     until(false)
    end.

    This worked for me.
    I added SetupSRL and removed the "if then"

  7. #7
    Join Date
    Nov 2008
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for all the help, but so far no luck
    It still only typing "Message1" over and over. Remember i'm using this to do google searches? Maybe that effects it? Idk, if anyone knows what to do please post.
    Thank You.

  8. #8
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Don't put SetupSRL; in the repeat/until loop! It will load all of SRL's stuff over and over and lagg like crazy.
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  9. #9
    Join Date
    Nov 2008
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    How about this?

    But it still won't type message 2
    SCAR Code:
    program script;
    {.include SRL/SRL.scar}
     
    const
    Message1='Test';
    Message2='Text';
     
    Procedure Firstclick;
    begin
      MoveMouse(746,71);
      Wait(1000);
      ClickMouse(746,71,true);
    end;
     
     
    Procedure BeginTyping;
    begin
       Wait(2000);
       TypeSend(Message1);
       Wait(2000);
       TypeSend(Message2);
    end;
     
    Procedure Secondclick;
    begin;
      MoveMouse(52,328);
      Wait(3000);
      ClickMouse(52,328,true);
    end;
     
    begin
     repeat
       Firstclick;
       BeginTyping;
       Secondclick;
     until(false)
    end.

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

    Default

    I don't know about the not typing msg2 but for the infinite amount of outputs for msg1 it's because of "until(false)"

    Change to:

    PHP Code:
    program script;
    {.include 
    SRL/SRL.scar}

    var
    iinteger;
     
    const
    Message1='Test';
    Message2='Text';

    procedure defineVars;
    begin
    i
    := 10// how many times to say.
     
    Procedure Firstclick;
    begin
      MoveMouse
    (746,71);
      
    Wait(1000);
      
    ClickMouse(746,71,true);
    end;
     
     
    Procedure BeginTyping;
    begin
       Wait
    (2000);
       
    TypeSend(Message1);
       
    Wait(2000);
       
    TypeSend(Message2);
    end;
     
    Procedure Secondclick;
    begin;
      
    MoveMouse(52,328);
      
    Wait(3000);
      
    ClickMouse(52,328,true);
    end;
     
    begin
     repeat
    defineVars
    ;
    i:= 1;
       
    Firstclick;
       
    BeginTyping;
       
    Secondclick;
     
    until(<= 0)
    end
    Something like that.. I never used a compiler..

  11. #11
    Join Date
    Sep 2008
    Location
    Adelaide, South Aust
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm not 100% sure but I think TypeSend sends an ENTER after the text. So when you use it in Google search it types the text then sends an enter so Google goes on to do the search before you can send the other text or do the SecondClick.

    I could be wrong though

  12. #12
    Join Date
    Sep 2006
    Location
    Canada
    Posts
    1,124
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by guyver View Post
    I'm not 100% sure but I think TypeSend sends an ENTER after the text. So when you use it in Google search it types the text then sends an enter so Google goes on to do the search before you can send the other text or do the SecondClick.

    I could be wrong though
    I think this is it, because it sends the second message in notepad.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help with a few problems in my script
    By Warflight in forum OSR Help
    Replies: 3
    Last Post: 01-25-2009, 09:58 AM
  2. First Script(Problems)
    By earthgas in forum First Scripts
    Replies: 7
    Last Post: 12-12-2008, 10:33 PM
  3. Problems with a script.:(
    By h4lofr3ak in forum OSR Help
    Replies: 19
    Last Post: 02-09-2008, 10:59 AM
  4. Having problems with my first script
    By darkfire355 in forum OSR Help
    Replies: 2
    Last Post: 01-27-2008, 12:23 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
  •