mouseSlot overload function#264
Open
ThomasSRL wants to merge 3 commits intoSRL:masterfrom
ThomasSRL:patch-57
Open
mouseSlot overload function#264ThomasSRL wants to merge 3 commits intoSRL:masterfrom ThomasSRL:patch-57
ThomasSRL wants to merge 3 commits intoSRL:masterfrom
ThomasSRL:patch-57
Conversation
Member
|
What is an example situation you would use this? |
|
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'])" |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(*
mouseSlot
.. code-block:: pascal
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::
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');
*)