var w1;
var item1;
w1 = Aliases.xxxx;
item1 = w1.wItems.Item("xxxx");
var w2;
var item2;
w2 = Aliases.yyyy;
item2 = w2.wItems.Item("yyyy");
var x1 = w1.ScreenLeft + item1.TextBounds.Left + item1.TextBounds.Width / 2;
var y1 = w1.ScreenTop + item1.TextBounds.Top + item1.TextBounds.Height / 2;
var x2 = w2.ScreenLeft + item2.TextBounds.Left + item2.TextBounds.Width / 2;
var y2 = w2.ScreenTop + item2.TextBounds.Top + item2.TextBounds.Height / 2;
Sys.Desktop.MouseDown(VK_LBUTTON, x1, y1);
Delay(500);
Sys.Desktop.MouseX = x2;
Sys.Desktop.MouseY = y2;
Delay(500);
Sys.Desktop.MouseUp(VK_LBUTTON, x2, y2);