Forum Discussion

Sariali's avatar
Sariali
Contributor
14 years ago

Breaking drag&drop operation

Hello!



We have multiple objects on one track of a timeline. When you move the
first object to the right all following objects will be moved to the
right, as well.




To move an object between future objects on the same track, a curve
movement must be made, i.e. one has to change the track while dragging
the object.




This curve movement is not recorded by TestComplete. Only the starting
point and the end point of the drag-operation are stored.




Is there a way to break the drag-operation into single steps like:




1. drag start at (x, y)


2. mouse moving to (x, y), mouse moving to (x, y), etc.


   - for leaving the current track


3. drag end at (x, y)





sincerely

Necip Sariali

2 Replies

  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 2 rankChampion Level 2
    Hi Necip,



    LLPlayer object might be the thing that will help.

    Something like this:

    LLPlayer.MouseDown

    LLPlayer.MouseMove(x1, y1)

    LLPlayer.MouseMove(x2, y2)

    LLPlayer.MouseUp



    See TestComplete help for more info about LLPlayer object and code samples.
  • Hi Alexei, excellently, it functions! thank you very much!