Adblock breaks this site

Using Scar for something other than Runescape

Discussion in 'Scar/Simba Help' started by iceblits, Apr 28, 2010.

Thread Status:
Not open for further replies.
  1. iceblits

    iceblits Active Member

    Joined:
    May 10, 2007
    Posts:
    135
    Referrals:
    0
    Sythe Gold:
    0
    Using Scar for something other than Runescape

    Hello,

    I used scar a lot in the past for cheating on runescape but it occurred to me that it may have other uses. However, I am not very good at programming. I'm trying to figure out how I would program a script to handle the following scenario:

    Assume there is an online testing site that generates multiple choice questions from a previously chosen bank. Assume I already know the answer to all the questions but I would like to make a script that matches up the questions with the answer.

    How would I do this? I understand that it is extremely easy to simply take the test myself, but I am asking because I would like to challenge myself with building this bot. It should be less complicated than making a runescape script because I already know all the possible questions and their answers. I simply need a bot that will click on the right answer given a specific question.

    Thank-you
     
  2. s2h6699

    s2h6699 Newcomer

    Joined:
    Mar 7, 2010
    Posts:
    12
    Referrals:
    0
    Sythe Gold:
    0
    Using Scar for something other than Runescape

    Assuming it's almost all the same questions over and over you could do something like (pseudo):

    if (FindQuestionOneBitMap) then
    FindAnwserOneBitMap and click

    if (FindQuestionTwoBitMap) then
    FindAnwserTwoBitMap and click

    if (FindQuestionThreeBitMap) then
    FindAnwserThreeBitMap and click

    I'm not going to spoon feed you but here are all the functions you will use:

    ClickMouse(x,y,true)
    x is the x coord of the mouse (or bitmap)
    y is the y coord of the mouse (or bitmap)
    true is left click, false is right click.

    GetMousePos(x,y)
    x is the x coord of the mouse (or bitmap)
    y is the y coord of the mouse (or bitmap)

    For Bitmaps:

    Under your variables you assign them names like QuestionOne, QuestionTwo etc.

    Then in the begin of the main loop you assign their values which can be a string that SCAR generated or ('C:/New Folder/New Folder2/bitmap1.bmp')

    Finding them:

    FindBitmap(bitmap_name, x, y)
    bitmap_name is self explanatory
    x and y need to be assigned under variables, not entering number will look for the bitmap all through the screen so only initialize them.

    Your finished product for one is:

    var
    xQ,yQ:integer //question coords, these are re-usable
    xA,yA:integer // Answer coord, these are re-usable
    Q,A:integer //bitmaps of the Question and Answer, add more as needed

    //main loop
    begin
    Q:=('c:/question.bmp');
    A:=(c:/answer.bmp');

    repeat
    If (Findbitmap(Q, xQ, yQ)) Then
    begin
    FindBitmap(A, xA, yA);
    ClickMouse(xA, yA);
    end;
    until(false) //Your ending condition goes there
    end.
     
  3. CXgamer

    CXgamer Newcomer

    Joined:
    Jul 18, 2008
    Posts:
    4
    Referrals:
    0
    Sythe Gold:
    0
    Using Scar for something other than Runescape

< [VIDEO] Setting up SCAR and SRL | Clicking Script help. >
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site