Results 1 to 9 of 9

Thread: Help. Wont Click bitmap?

  1. #1
    Join Date
    Dec 2007
    Location
    UK
    Posts
    479
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Help. Wont Click bitmap?

    Hey. Ive got this lil function and it finds the bitmaps and says whether it has, but it wont click I have no idea why not...
    SCAR Code:
    If FindBitmapToleranceIn(ClickEnter, x, y,202,323,572,372, 10) then
       Writeln(SuccesfulLogin)
       else
       Writeln(UnSuccesfulLogin);
       UnloadBitmap;
       TerminateScript;
       begin
        Mouse(x,y,3,4,True);
        Wait(1000+Random(500));
    I don't play runescape. I auto it

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

    Default

    maybe because there is an error in your script? what does it say when you press play?

  3. #3
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by 0wn 4 skill View Post
    Hey. Ive got this lil function and it finds the bitmaps and says whether it has, but it wont click I have no idea why not...
    SCAR Code:
    If FindBitmapToleranceIn(ClickEnter, x, y,202,323,572,372, 10) then
       Writeln(SuccesfulLogin)
       else
       Writeln(UnSuccesfulLogin);
       UnloadBitmap;
       TerminateScript;
       begin
        Mouse(x,y,3,4,True);
        Wait(1000+Random(500));

    You are telling SCAR, that if it finds the bitmap then to say its Successfull, but you are not telling it to click. The way your code is now, your telling SCAR to click if it doesn't find the Bitmap.

    FIXED:
    SCAR Code:
    If FindBitmapToleranceIn(ClickEnter, x, y, 202, 323, 572, 372, 10) Then
    Begin  // IF IT FINDS BITMAP, IT WILL DO THIS
      Writeln(SuccesfulLogin);
      Wait(1000+Random(500));
      Mouse(x,y,3,4,True);
      Wait(1000+Random(500));
    End Else
    Begin  // IF IT DOESNT FIND BITMAP, IT WILL DO THIS
      Writeln(UnSuccesfulLogin);
      UnloadBitmap;
      TerminateScript;
    End;
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  4. #4
    Join Date
    Dec 2007
    Location
    UK
    Posts
    479
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No errors
    SCAR Code:
    Successfully compiled (6540 ms)
    It works great up until this point. I have a check to see if it finds the bitmap and it does. But just doesnt click?
    I don't play runescape. I auto it

  5. #5
    Join Date
    Apr 2008
    Location
    Northwest england
    Posts
    1,179
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    erm did you rite that isnt it freebitmap not unload

    your rite lines aint gunna work you need ''s

    If FindBitmapToleranceIn(ClickEnter, x, y,202,323,572,372, 10) then
    begin
    Mouse(x,y,3,4,True);
    Wait(1000+Random(500));
    Writeln(SuccesfulLogin);
    end else
    Writeln(UnSuccesfulLogin);
    freeBitmap;
    TerminateScript;


    try dat
    Blank!

  6. #6
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by waddo View Post
    erm did you rite that isnt it freebitmap not unload

    your rite lines aint gunna work you need ''s

    If FindBitmapToleranceIn(ClickEnter, x, y,202,323,572,372, 10) then
    begin
    Mouse(x,y,3,4,True);
    Wait(1000+Random(500));
    Writeln(SuccesfulLogin);
    end else
    Writeln(UnSuccesfulLogin);
    freeBitmap;
    TerminateScript;


    try dat

    Yeah his WriteLn lines will work because in his const he put something like..

    SCAR Code:
    SuccesfulLogin := 'Logged In';
    UnSuccesfulLogin := 'Not Logged In';

    sumthing like that anyways..

    AND OWN.. DID U READ MY FIX?
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  7. #7
    Join Date
    Dec 2007
    Location
    UK
    Posts
    479
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Tyvm all. Testing now...
    I don't play runescape. I auto it

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

    Default

    turbobk's piece should have replaced your bit and removed the errors. The original problem was that you did not have a begin and end after your if so it only ran the first line after the else, so would terminate the script every time as it would only run the one line after the else
    Code:
    if FindBitmapToleranceIn(ClickEnter, x, y,202,323,572,372,10) then Writeln(SuccesfulLogin) else begin Writeln(UnSuccesfulLogin); UnloadBitmap; TerminateScript; end; Mouse(x,y,3,4,True); Wait(1000+Random(500));


    That is what it should look like. The begin and end after the else tell it to run those 3 lines of code rather than just the Writeln, so it will only TerminateScript; when FindBitmap doesn't find it.

    Edit: Advanced editor = uber problems with scar script
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  9. #9
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by mixster View Post
    turbobk's piece should have replaced your bit and removed the errors. The original problem was that you did not have a begin and end after your if so it only ran the first line after the else, so would terminate the script every time as it would only run the one line after the else
    Code:
    if FindBitmapToleranceIn(ClickEnter, x, y,202,323,572,372,10) then Writeln(SuccesfulLogin) else begin Writeln(UnSuccesfulLogin); UnloadBitmap; TerminateScript; end; Mouse(x,y,3,4,True); Wait(1000+Random(500));


    That is what it should look like. The begin and end after the else tell it to run those 3 lines of code rather than just the Writeln, so it will only TerminateScript; when FindBitmap doesn't find it.

    Edit: Advanced editor = uber problems with scar script

    Nicely put..
    I couldn't really think of how to explain it, but you did it for me

    Thanks
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Wont Right-Click???
    By Rora in forum OSR Help
    Replies: 3
    Last Post: 11-10-2007, 06:20 PM
  2. it wont walk(click)
    By sjlou in forum OSR Help
    Replies: 16
    Last Post: 09-14-2007, 11:51 PM
  3. Wont click on AutoColorThis
    By badandymitch in forum OSR Help
    Replies: 2
    Last Post: 05-07-2007, 08:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •