I'm trying to drag&drop one of the files from Windows folder. The problem is that I cannot get the x,y coordinates of selected file. The code stated below receive the coordinates of the whole folder window instead of coordinates of specific file that was selected. Maybe I can use native UFT functions .Drag & .Drop instead of DragAndDrop but I think it requires the object item that I can attach to. Any help would be appreciated.
Window("From").WinObject("Items View").WinList("Items View").Select Filename
x = Window("From").WinObject("Items View").WinList("Items View").GetROProperty("abs_x")
y = Window("From").WinObject("Items View").WinList("Items View").GetROProperty("abs_y")
dr.DragAndDrop x, y, x+550, y+100, LEFT_MOUSE_BUTTON
Aucun commentaire:
Enregistrer un commentaire