[DOCS] paste(): parameter description wrong

Asked by Manfred Hampl on 2019-01-17

https://sikulix-2014.readthedocs.io/en/latest/region.html#Region.paste

...
paste([PSMRL, ]text)
Paste the text at a click point.

Parameters:
PSMRL – a pattern, a string, a match, a region or a location that evaluates to a click point.
modifiers – one or more key modifiers
...

What is the second parameter: text (as shown in the heading), or modifiers (as shown in the parameter explanation)?

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2019-01-23
Last reply:
2019-02-08
RaiMan (raimund-hocke) said : #1

thanks for finding - has to be revised.

the textual description is correct though.

Manfred Hampl (m-hampl) said : #2

Just saw, that there is also an omission in the description of

type([PSMRL, ]text[, modifiers])
Type the text at the current focused input field or at a click point specified by PSMRL.

Parameters:
* PSMRL – a pattern, a string, a match, a region or a location that evaluates to a click point.
* modifiers – one or more modifier keys (Class Key)

Three parameters in the parameter list, but explanation only for two of them.
https://sikulix-2014.readthedocs.io/en/latest/region.html#Region.type

Manfred Hampl (m-hampl) said : #3

Sorry for nagging, even some additional ones:

hover(PSMRL)
Move the mouse cursor to hover above a click point.

Parameters:
* PSMRL – a pattern, a string, a match, a region or a location that evaluates to a click point.
* modifiers – one or more key modifiers

There is no "modifiers" in the parameter list

dropAt(PSMRL[, delay])
Complete a drag-and-drop operation by dropping a previously dragged item at the given target click point.

Parameters:
* PSMRL – a pattern, a string, a match, a region or a location that evaluates to a click point.

What is delay? Integer or floating? Seconds or Milliseconds? Is it equivalent to "Settings.DelayBeforeDrop"?

Launchpad Janitor (janitor) said : #4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

RaiMan (raimund-hocke) said : #5

Still to be done

Can you help with this problem?

Provide an answer of your own, or ask Manfred Hampl for more information if necessary.

To post a message you must log in.