Results 1 to 6 of 6

Thread: Need help plz

  1. #1
    Join Date
    May 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need help plz

    im a noob scar programmer and i need some help with this login feature
    function Login: Boolean;
    begin
    var
    x,y: Integer;

    const
    login := BitmapFromString(11, 13, 'beNp1kMEKgDAMQ/dlCuJhDtT' +
    'LUPC6//8GDQTCbFjJoXSvJGupudRlPSA0+/lcd6PQj6QVbVGv1TRv' +
    'YAKQ/gXGAbrQiACNBPBVjFK5O+bolTxkwERfpjxDOEgP6AgjQLdyo' +
    'K8+JJWs8geKqrVV');
    MoveMousSmoothEx(x,y);
    Wait(50);
    ClickMouse(x,y,true);
    SendKeys('BLAH');
    wait(50)
    SendKeys(chr(13));
    wait(50 +random(20))
    SendKeys('SOMETHING')
    wait(100)
    end;
    begin

    var
    x,y: Integer;

    const
    login2 := BitmapFromString(11, 15, 'beNp9UEEKgDAM67sUFMSDDt' +
    'SLJ///j9kZCKUZljC6Ns2ylntZz620M8IrhFZS67geXOsXSiBAMDM' +
    'KejLNuwOVREjdqND1nJ4AfHwYV/UAZXSjbVXAlBLiT/8JUKDPKgEn' +
    'YGLEJKjmC8fOmaRWF43wApsRvoE=');
    if(findBitmap(login2,x,y)) then
    MoveMouseSmooth(x,y);
    ClickMouse(x,y,true);
    end;
    rlly need help plz i cannot complete my first script without your help (i am using scar version 3.14) Help much appreciated =)

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

    Default

    you need to declare login to as an integer;

    Var
    X, Y, Login, Login2 :integer;
    ~Hermen

  3. #3
    Join Date
    May 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    TY for the help but my scar 3.14 still says :
    Failed when compiling
    Line 4: [Error] (4:1): Identifier expected in script
    =(

  4. #4
    Join Date
    Oct 2006
    Posts
    1,190
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    i made it compile im not to sure how well it will work
    remember to freebitmaps and DTMs to prevent memory leaks also movemoussmoothex was outdated and so is clickmouse look through mouse.scar to see the available commands, also try to learn standards it makes your script look neater
    rep++ if this helped

    if u dont understand anything that i did just ask and il try to explain to to u


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

    var
    login,login2,x,y :integer;

    procedure LoadBmp;
    begin
      login := BitmapFromString(11, 13, 'beNp1kMEKgDAMQ/dlCuJhDtT' +
        'LUPC6//8GDQTCbFjJoXSvJGupudRlPSA0+/lcd6PQj6QVbVGv1TRv' +
        'YAKQ/gXGAbrQiACNBPBVjFK5O+bolTxkwERfpjxDOEgP6AgjQLdyo' +
        'K8+JJWs8geKqrVV');
      login2 := BitmapFromString(11, 15, 'beNp9UEEKgDAM67sUFMSDDt' +
        'SLJ///j9kZCKUZljC6Ns2ylntZz620M8IrhFZS67geXOsXSiBAMDM' +
        'KejLNuwOVREjdqND1nJ4AfHwYV/UAZXSjbVXAlBLiT/8JUKDPKgEn' +
        'YGLEJKjmC8fOmaRWF43wApsRvoE=');
    end;

    procedure LoginProcedure;
    begin
      MMouse(x, y, 2, 2);
      Wait(50);
      ClickMouse(x, y, true);
      SendKeys('BLAH');
      wait(50)
        SendKeys(chr(13));
      wait(50 + random(20))
        SendKeys('SOMETHING')
        wait(100)
        if (findBitmap(login2, x, y)) then
        MoveMouseSmooth(x, y);
      ClickMouse(x, y, true);
      freebitmap(login);
      freebitmap(login2);
    end;

    begin
      loadBmp;
      LoginProcedure;
    end.



  5. #5
    Join Date
    May 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    alright that seems to help but i guess i need srl/srl.scar XD

  6. #6
    Join Date
    Oct 2006
    Posts
    1,190
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by fudgepack a View Post
    alright that seems to help but i guess i need srl/srl.scar XD
    lol yeah cos the functions u use are in SRL

    dont u have it installed?



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
  •