sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #53837
[Question #687647]: Drag and Drop
New question #687647 on Sikuli:
https://answers.launchpad.net/sikuli/+question/687647
2.0.1-2019-11-22_16:54/Mac10.15.2/Java13(64)13.0.1+9
Is Drag and Drop Working
def Testing_Drag(dragregion,dropregion,v_Mouse_Delay):
global g_MoveMouseDelay
global g_Waterfall_This_Location
global g_Debug
print("Do_Drag ")
v_Wait = 1
Settings.MoveMouseDelay = v_Mouse_Delay
hover(dragregion) ; print "hover(dragregion) and Drag",dragregion.x,dragregion.y,"v_Mouse_Delay",v_Mouse_Delay
print "dropregion",dropregion.x,dropregion.y
drag(dragregion)
wait(v_Wait)
dropAt(dropregion)
popup(str(v_Mouse_Delay))
g_MoveMouseDelay = 1
v_Try = 0 # Tried diff speeds - worked fine with delay of 5 on 1.1.3
# Get Focus
click(Location(1002, 547))
while v_Try < 100:
v_Try = v_Try + 1
Settings.MoveMouseDelay = g_MoveMouseDelay
dragregion = Location(1071, 588)
dropregion = Location(630, 537)
Testing_Drag(dragregion,dropregion,v_Try+4)
v_Try = 200
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.