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
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.
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;
Why do you have two threads?
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
There are currently 1 users browsing this thread. (0 members and 1 guests)