Usage
Copy files/folders from the Windows Explorer, open notepad an press Ctrl+Alt+v. Filenames of selected files without path are copied.
Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus
#SingleInstance, Force
; Copy files/folders from the Windows Explorer, open notepad an press Ctrl+Alt+v. Filenames of selected files without path are copied.
^!v::
ClipboardAntigua := Clipboard
loop Parse, Clipboard, `n, `r
Enviar(A_LoopField)
Clipboard := ClipboardAntigua
return
Enviar(linea){
Haystack := linea
Needle := "[^\\]+$"
RegExMatch(Haystack, Needle, Match)
Clipboard := Match
Send, ^v
Send, {Enter}
}