← Back to team overview

sikuli-driver team mailing list archive

[Bug 1428056] Re: paste() without a region do a click [1.1.0]

 

Just to be clear: we are talking about something like that:
# having done some mouse actions to select a text
paste("new text")

If this is what you mean, then I have to confirm:
before pasting, it does a click at the current mouse position, which indeed does not really makes sense.
(but the place to fix this is in Region.paste(target, text), that should not do a click, if target is null).

But this should happen in any case, no matter wether you run the script with version 1.1.0 from IDE, command line or from Java.
So this needs clarification.


** Changed in: sikuli
       Status: New => Fix Committed

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.1.0

** Summary changed:

- paste() without a region do a click [1.1.0]
+ [1.1.0] paste() without a target should not click

** Changed in: sikuli
   Importance: High => Critical

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1428056

Title:
  [1.1.0] paste() without a target should not click

Status in Sikuli:
  Fix Committed

Bug description:
  When I run my script with the version 1.0.1 and with the IDE 1.1.0
  everything works fine. But I also run my scipt via JythonScriptRunner
  from Java. If I want to paste some text on the current caret position
  (and replace the selected text), sikuli does a click on the current
  mouse position and after that it paste the text. So my caret is on
  another position or my marked text isn't selected anymore before the
  new test will be inserted.

  I looked up in the source code and the commit eba537c in Mouse.java
  Line 236 was the reason.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1428056/+subscriptions


References