Copy to clipboard the script path with AutoHotKey
<p>I have tried this but it's not copying the path of the folder containing the script:</p>

<pre><code>If(WinActive("ahk_class ExploreWClass")) 
{ ClipSaved := ClipboardAll
    ; save original clipboard clipboard =                   ; clear
clipboard Send, "%A_WorkingDir%"                ; copy selected folder  
ClipWait, 2             ; wait until the clipboard contains data Sleep,
100 }
</code></pre>

<p>Thanks for your help!</p>

<p>P.S: For this, I am using AHK as a bat, not as a hotkey</p>