Results 1 to 5 of 5

Thread: new feature idea

  1. #1
    Join Date
    Nov 2007
    Posts
    77
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default new feature idea

    would be nice to make a fail safe with the red X that appear when u click on something

    like if anything goes wrong and the X is yellow (becuz it failed to click by few)
    then it would try again quickly instead of waiting next loop


    editops sry
    Last edited by alucard123; 09-16-2012 at 03:47 PM.

  2. #2
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    From the mouse include...
    Simba Code:
    (*
    DidRedClick
    ~~~~~~~~~~~

    .. code-block:: pascal

        function DidRedClick: Boolean;

    Checks for the Red X after a Click, Times out after 500 ms

    .. note::

        by Rasta Magician

    Example:

    .. code-block:: pascal

    *)

    function DidRedClick: Boolean;
    begin
      Result := DidClick(true, 1000);
    end;

    (*
    DidYellowClick
    ~~~~~~~~~~~~~~

    .. code-block:: pascal


        function DidYellowClick: Boolean;

    Checks for the Yellow X after a Click, Times out after 500 ms

    .. note::

        by Rasta Magician

    Example:

    .. code-block:: pascal

    *)

    function DidYellowClick: Boolean;
    begin
      Result := DidClick(false, 1000);
    end;

  3. #3
    Join Date
    May 2012
    Location
    Somewhere in, PA
    Posts
    1,810
    Mentioned
    9 Post(s)
    Quoted
    226 Post(s)

    Default

    Why do you have two threads?
    My First Build!, Selling Downloadable Games
    -------------------------------------

  4. #4
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Simba Code:
    if DidRedClick then
    WriteLn('Success.');
    else
    begin
    WriteLn('Oh no! Something went wrong! Let"s go back and retry...');
    RepeatThatProcedure;
    end;

    It can be utilized in that way.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  5. #5
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Simba Code:
    if DidRedClick then
    WriteLn('Success.');
    else
    begin
    WriteLn('Oh no! Something went wrong! Let"s go back and retry...');
    RepeatThatProcedure;
    end;

    It can be utilized in that way.
    This wont compile as semicolon should only be used at the end of a statement.
    Also i suppose OP is just not aware of this function.

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
  •