[request] Find(img) and DragDrop the Screen to Middle

Bug #1532898 reported by Chathura
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Won't Fix
Undecided
Unassigned

Bug Description

 I constantly use Find(image) the get region around the image then do DragDrop the Screen to Middle. It would be nice to have a method where you find the image on screen and drag screen to middle. I constantly run into problems where myregion and dragDrop is outside screen space where script will stop working properly afterwards.

This code below finds the image and drag and drop to right.

  icons=findAll(Pattern("1449539836856.png").similar(0.65))
  sorted_icons = sorted(icons, key=by_x)
  for t in sorted_icons:
    t.highlight(2)
    wait(1)
    myregion=Region(t.x,t.y,200,200)
    myregion.highlight(2,"green")
    dragDrop(t, t.offset(Location(-200,0)))

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → Won't Fix
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.