I needed to be able to retrieve the folder currently being explored by an instance of Windows Explorer. To that end, I had to write a function to do this which I've copied out below. Feel free to re-use this if you find it useful.
#include-once
; ==================================================================================================
; <_GetWindowsExplorerPath.au3>
;
; Functions:
; _GetWindowsExplorerPath()
; _GetWindowsExplorerPaths()
;
; Author: WideBoyDixon
; ==========
ZGorlock,
Welcome to the AutoIt forum.
Using Ascend4nt's code from post #35 you can get the selected items in string or array form like this:
#include <Array.au3>
Local $oErrorHandler = ObjEvent("AutoIt.Error", "_ComErrFunc")
$aWinList=WinList("[REGEXPCLASS:^(Explore|Cabinet)WClass$]")
For $i = 1 To $aWinList[0][0]
; Get base folder and selections
$aSelection = _ExplorerWinGetSelectedItems($aWinList[$i][1])
; Display as strings
ConsoleWrite("Explorer Window: " & $aSe