Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Need some help with a windows 7 issue


  • Please log in to reply
18 replies to this topic
joey3002
  • Members
  • 36 posts
  • Last active: Sep 30 2010 12:23 PM
  • Joined: 18 Mar 2010
Lexikos, wow.. that works.. 1 small tweak I need though.. I do not need the actual path copied to the clipboard, just the filenames..

thanks

joey3002
  • Members
  • 36 posts
  • Last active: Sep 30 2010 12:23 PM
  • Joined: 18 Mar 2010
any kind of update to this? please..

thanks again

sbc
  • Members
  • 321 posts
  • Last active: Jun 07 2011 10:24 AM
  • Joined: 25 Aug 2009

I do not need the actual path copied to the clipboard, just the filenames..


:?:
^j::
    Clipboard := ""         ; Empty clipboard.
    Send ^c!d               ; Send Ctrl+C (copy) and Alt+D (focus address bar)
    ClipWait 1              ; Wait for clipboard to contain something.
    Clipboard := Clipboard  ; Convert to text.
    ControlGetText currentPath, Edit1, A    ; Retrieve address (only works after Alt+D).
 
	loop, parse, clipboard, `n
	{
		if A_LoopField
		{
			SplitPath, A_LoopField, FileName
			Filenames = %Filenames%%Filename%`n
		}
	}
	StringTrimRight, Filenames, Filenames, 1
	ClipBoard := Filenames
	MsgBox % currentPath "`n" Clipboard     ; Show address and list of selected files.
	Filenames =				;delete
return


joey3002
  • Members
  • 36 posts
  • Last active: Sep 30 2010 12:23 PM
  • Joined: 18 Mar 2010
omg, i love you all!!!

huge thanks for helping me out.