$var = ControlGetText("", "","[CLASS:Edit; INSTANCE:1]")
If $var = "" Then
$r=ControlListView($var, "", "SysListView321", "GetSelected", 1)
$r1=ControlListView($var, "", "SysListView321", "GetText", $r, 0)
$r2="D:\Desktop" & "\" & $r1; для рабочего стола - замена пустой строки на адрес стола
MsgBox(0, "", $r2)
ClipPut($r2)
Else
$r=ControlListView($var, "", "SysListView321", "GetSelected", 1)
$r1=ControlListView($var, "", "SysListView321", "GetText", $r, 0)
$r2=$var & "\" & $r1
MsgBox(0, "", $r2)
ClipPut($r2)
EndIf