Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mouseSlot overload function #264

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

mouseSlot overload function #264

wants to merge 3 commits into from

Conversation

ThomasSRL
Copy link
Contributor

(*
mouseSlot

.. code-block:: pascal

function TRSTabBackpack.mouseSlot(slot, waitTime, mouseAction: integer = MOUSE_MOVE; upText: TStringArray): boolean; overload;

Overload function, additional parameters waitTime and upText.
Returns true if it finds the correct upText at the desired backpack slot.
The upText parameter is a TStringArray, and uses both the text in top left
corner or the mouseOver popup, while the waitTime parameter is used to wait
after the mouseAction

.. note::

- by Thomas
- Last Updated: 13 November 2016 by Thomas

Example:

.. code-block:: pascal

if tabBackpack.mouseSlot(1, randomRange(100, 200), MOUSE_LEFT, ['Dragon bones', 'Big bones']) then
writeln('We clicked the bones in Backpack slot 1');

*)

@TheTS
Copy link
Member

TheTS commented Nov 14, 2016

What is an example situation you would use this?

@ghost
Copy link

ghost commented Nov 14, 2016

Parameters should be "slot, waitTime :Integer; mouseAction : Integer = MOUSE_MOVE; uptext :TStringArray", now every parameter defaults to MOUSE_MOVE.

This would I.e allow scripters to type e.g "backpack.mouseSlot(3, 150, , ['Arrow', 'rrow'])"
Note the lack of a 3rd parameter.
I don't think it's that useful, tbh

@ThomasSRL
Copy link
Contributor Author

Mainly usefull to only click certain slots, I use it to note items to make sure I dont note the food.

Thanks @Zyt3x , will edit asap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants