#include #include #include #include #include While 1 ; 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 ExitLoop Next ; Selected items For $oItem In $oWindow.Document.SelectedItems() ConsoleWrite( $oItem.Path() & @CRLF ) Next SplashTextOn("Message Error", "We can perform a power copy operation, because you do not have a file select.", 300, 90, 60, 960, $DLG_TEXTLEFT, "", 12) Sleep(3000) SplashOff() Exit WEnd