SRL Archive - OSR Help

new feature idea


alucard123

2012-09-08 01:05:56

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


edit:oops sry

Le Jingle

2012-09-08 01:11:47

From the mouse include…

(*
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;

Austin

2012-09-08 07:51:27

Why do you have two threads?

KeepBotting

2012-09-11 06:41:50

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.

riwu

2012-09-11 06:46:01

From: KeepBotting
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.