Results 1 to 5 of 5

Thread: Making some headway, but strange error.

  1. #1
    Join Date
    Oct 2007
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Making some headway, but strange error.

    To explain some things, script was working perfectly by just making the mouse move to certain places and click, but even though it is harder and useless, for the sake of getting more advanced I decided to start off and try to replace the coordinates with searches for the bitmaps username and password. Did it, followed the stickied FAQ for it and made everything black except the word username and cropped it. Now I just replaced one of the Mouse functions to click username with the serch for the bitmap and I'm getting this error. I have no idea what the error means so any help appreciated.

    Line 17: [Error] (14698:50): Type mismatch in script C:\Program Files\SCAR 3.12\Scripts\First try.scar
    Failed when compiling



    Code:
    //First program
    program Afirstidea;
    {.include SRL/SRL.scar}
    var
    Username,Password,BitUsername,BitPassword: String;
    //--------------------------------------
    procedure Setup;//Sets up the Integers
    begin
     Username:= '';
     Password:= '';
    end;
    //--------------------------------------
    procedure Bitmapsetup;//Creates codes for Bitmaps
    begin
     BitUsername := BitmapFromString(55, 10, 'beNpjYBgq4P///1jZo' +
           '44c4Y6EyKKph3PhbGIMJF4lfkf+hwFMNyALYjoYUxemFjxGYXUtfu' +
           '+gWY1sLJGOxMrA4x2C8Y7Vkfi9QEVHMowCmgIAZnjyDg==');
     BitPassword := BitmapFromString(53, 8, 'beNpjYPgPAwyDAGA6A+' +
           '62weBC/M4bcBficR5+ZUQaDteIxiZoKa4YxOU8zDRJUISg83A5mCS' +
           'PEFSPP3lgem3AnYdfI0FD8Fg3qAEA343jHQ==');
    //--------------------------------------
    procedure Login;//Moving the Mouse
    var Ux,Uy,Px,Py: Integer;
     begin
      FindRS
       Mouse( -6,130,0,0,true)
       wait(300)
       Mouse( 464,294,0,0,true)
       wait(300)
       FindBitmapToleranceIn(BitUsername,Ux,Uy,271,254,345,365,25);
       Mouse(Ux,Uy,0,0,true)
        wait(100)
        SendKeysWait(Username,90,20)
        wait(1000)
         Mouse( 362,276,0,0,true)
         wait(1000)
         SendKeysWait(Password,90,20)
     end;
    //--------------------------------------
    begin//Makes the Procedures do their job
    SetupSRL
     Bitmapsetup
     Setup
      Login
    end.

  2. #2
    Join Date
    Jul 2007
    Location
    America
    Posts
    421
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Very odd - messed up bitmap, maybe? There's no 'end' on your procedure BitmapSetup, but that's not what's causing it. Try making a new bitmap from the image - maybe you only copied part of the bitmap string. It's giving you an error within the string, though... maybe someone else has better insight.
    I dunno, those asians are pretty difficult to out-auto, legend has it they don't need sleep or food...~tim0suprem0
    Activity is on the decline - school's got me
    Check out my tutorial[s] on Color Finding!||Procedures and Functions!

  3. #3
    Join Date
    Sep 2007
    Location
    Behind You
    Posts
    72
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    BitUsername and BitPassword variables should be Integers.
    The[Cheese] really puts it perfectly:

    Reflection is win

  4. #4
    Join Date
    Oct 2007
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wow, how did I miss that. Sorry, should'nt have made that mistake. I hope I can become a member soon, getting better fast.

  5. #5
    Join Date
    Jul 2007
    Location
    America
    Posts
    421
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by JNCR View Post
    BitUsername and BitPassword variables should be Integers.
    And there you go. I completely missed that one

    Good luck on getting to members - it isn't as hard/special as everybody thinks it is. Just keep on learning, and make sure the script you submit has enough challenging material. Check out JAD's tut on getting to SRL Members in the intermediate section (just checked, not beginners), he has pretty much everything you need to get in.

    EDIT: if you need any help, feel free to PM me or any other 'active' Member.
    I dunno, those asians are pretty difficult to out-auto, legend has it they don't need sleep or food...~tim0suprem0
    Activity is on the decline - school's got me
    Check out my tutorial[s] on Color Finding!||Procedures and Functions!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Strange Error?
    By I Karma I in forum OSR Help
    Replies: 9
    Last Post: 01-10-2007, 11:07 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
  •