[1.0.1] dragDrop() does not accept 3 parameters --- workaround

Bug #1224758 reported by vince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

------------- workaround
keyDown(Key.CTRL)
dragDrop(src, target)
keyUp()
------------------------------------------------------------

script:
   srcfile = find("srcfile.png")
   dragDrop(srcfile,Location(srcfile.x+50,srcfile.y),KeyModifier.CTRL)

Error:
[error] TypeError ( dragDrop(): expected 1-2 args; got 3 )

RaiMan (raimund-hocke)
summary: - dragDrop() does not accept 3 parameters
+ [1.0.1] dragDrop() does not accept 3 parameters --- workaround
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
description: updated
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Medium
milestone: 1.1.0 → 2.0.0
Revision history for this message
Joe White (joe-white) wrote :

Tried this to mirror a window resize on Mac OS 10.11 with SikuliX 1.1.1.
The initial doc says there is an optional 3rd parameter. Any chance for
a fix in 1.1.1? Otherwise, I have no way of finding the bottom right corner of a browser window with an unpredictable background. KeyModifier.ALT works manually.....thanks

Revision history for this message
Joe White (joe-white) wrote :

ok, tried a workaround like this:

                    keyDown(KeyModifier.ALT)
                    dragDrop(loc, Location(x,y))
                    keyUp()

but didn't work, used it this way and it worked

                    keyDown(Key.ALT)
                    dragDrop(loc, Location(x,y))
                    keyUp()

RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → In Progress
milestone: 2.0.0 → 2.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.