In the last versions of Windows, it has been difficult to automate Windows Explorer. But there are many examples of code like this to extract the selected items:
; Windows Explorer on XP, Vista, 7, 8
$hExplorer = WinGetHandle( "[REGEXPCLASS:^(Cabinet|Explore)WClass$]" )
If Not $hExplorer Then Exit
; Shell object
$oShell = ObjCreate( "Shell.Application" )
; Find window
For $oWindow In $oShell.Windows()
If $oWindow.HWND() = $hExplorer Then