Results 1 to 2 of 2

Thread: chooseoption not working

  1. #1
    Join Date
    Jan 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default chooseoption not working

    I am updating my personal teleport tab making script to cut down on the amount of code to prevent less malfuctions. For some reason, the Mouse option below doesn't work and so doesn't the chooseoption.

    Code:
    procedure More3;  //MORE 3
    var
     x, y:Integer;
    
    begin
      if  FindColorSpiralTolerance(x, y, 2699577, 699, 439, 709, 451, 10) then
      begin
        if  FindColorSpiralTolerance(x, y, 526344, 239, 182, 271, 194, 10) then
          begin
          WriteLn('more3');
          Wait(4000 + Random(250));
          Mouse(x, y, 1, 1, False);
          Wait(1000);
          ChooseOption('etch-from-bank');
          Wait(1100);
          end;
      end;
    end;
    The mouse function just slowly moves the mouse for like ever, it takes like 5 minutes for it to reach it's destination and once it right clicks the demon butler, it just sits there not clicking the option.

    Help would be appreciated.

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Because your not using smart, you must set the mouse option speed yourself..
    2nd.. You don't have any fail-safe's

    MouseSpeed:= 8; is what your looking for to make it move faster. Higher the number, faster it moves.


    Next your going to want to check the uptext first -__-.. Finding the colour alone is definitely not enough. Using wait like that is incorrect as well.
    You should move the mouse to the butler, if WaitUptext('utler', 600) then..
    Rightclick him
    Waitoption(.....);

    You should never make your script depend entired on time.. for example: Clicking something then waiting 5 seconds then clicking something else.. you should always check if the options are there or the uptext then do the second click. Why? Because a single lag will screw u hard.
    I am Ggzz..
    Hackintosher

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
  •