Right click and Drag

Asked by Test App on 2018-01-22

I have a requirement where in holding the right click option i have to drag a mouse onto another location

Please let me know , how to perform this action

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Test App
Solved:
2018-01-23
Last query:
2018-01-23
Last reply:
2018-01-22
masuo (masuo-ohara) said : #1

[exvironment]
Windows10

[operation]
#1 move mouse pointer on file
#2 right click
#3 move another location
#4 up right button
#5 type "c"

[codes]
mouseMove("1516660548064.png") #move mouse pointer on file
mouseDown(Button.RIGHT)
mouseMove(Location(500,500))
mouseUp(Button.RIGHT)
type("c") #create copy file

Test App (laxmisaketha) said : #2

Thanks Masuo

Your solution worked perfect :)