Results 1 to 7 of 7

Thread: Need Help.!!!

  1. #1
    Join Date
    Mar 2007
    Posts
    276
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need Help.!!!

    Ok, Well im trying to figure out how to choose "x" for cooking the amount of things you want to cook.

    I want it to click "x" then Type in 28.

    Ive read the procedures, but its to complex lol


    Someone: 'Who the hell is TooManySitUps?'

    Boreas: 'Switch the first and last letter of my name, what do you get?'

    Someone: 'Um, SoreAb?'

    Boreas: 'And how do you get that?'

    Someone: 'From Too Many Sit Ups!! Haha, Boreas you are so clever!'

    Boreas: 'Ya he's like my evil twin that takes over when I'm being really sarcastic, or playing devil's advocate.'

  2. #2
    Join Date
    May 2007
    Location
    Canada
    Posts
    261
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use:
    function ChooseOption(x, y: Integer; txt: String): Boolean;
    By: Stupid3ooo
    Description:
    Finds Popup menu, then clicks on it.
    Your procedure would be:
    SCAR Code:
    procedure Cook;
    begin
      //find the stove and right click on it
      ChooseOption(x,y,'x');
      wait(200);
      TypeSend('28');
    end;
    Now wasn't that easy?

  3. #3
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    Mouse(x,t,2,2,false);
    ChooseOption('x');
    wait(2000+random(500);
    TypeSend(IntToStr(28));
    if u lagg (which happens a lot in unsigned)then u'll want to wait more than 200mm or esle it will sum times not work
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  4. #4
    Join Date
    May 2007
    Location
    Canada
    Posts
    261
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm, your right. You didn't type everything in right though. in Mouse, instead of "y" you put "t", in ChooseOption there is also a x,y before the string, and there is no point in "IntToStr(28)" in the TypeSend procedure as you can just put TypeSend('28');
    ^Just trying to tell you what you did wrong, so that you don't do it again when your making a script, will save you alot of trouble.

    SCAR Code:
    procedure Cook;
    begin
      //find the stove and right click on it
      ChooseOption(x,y,'x');
      wait(2000 + random(300));
      TypeSend('28');
    end;

  5. #5
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    wasnt paying a ttention to my mistakes on the first 2 but i can put inttostr...it works...just not as cool
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  6. #6
    Join Date
    May 2007
    Location
    Canada
    Posts
    261
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I know that it works, I never said it didn't, just said that using ' ' is easier

  7. #7
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you may want to do If ClickOption(...) Then incase it doesn't find the 'x' it will keep looking

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
  •