Drag one icon from another application and drop it into excel file

Asked by vandana

I have one excel icon which exports the file in excel format. I need to drag that excel icon from my application and drop it into another excel application through Sikuli.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

use the Sikuli feature dragDrop()

Revision history for this message
vandana (vandanasharma) said :
#2

I had tried but how to use dragDrop() feature for dragging one application into another. It would be helpful if you can provide example code for this.

Revision history for this message
Best RaiMan (raimund-hocke) said :
#3

So first write down, the steps you are doing manually and then translate this to a Sikuli workflow.

e.g. a usual workflow
--- click and hold left mouse button on the source icon
--- wait until it is accepted as a drag start
--- move mouse to the target icon or window
--- wait until a drop operation is expected
--- release mouse button

for every step there are Sikuli features available.

Revision history for this message
vandana (vandanasharma) said :
#4

Thanks RaiMan, that solved my question.