Get Filepath of selected files in 'Everything'(program) Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
eduardobedoya
Posts: 45
Joined: 05 May 2016, 14:02

Get Filepath of selected files in 'Everything'(program)

04 Aug 2018, 16:36

Hi, from this post I got this script that gets the Filepath of selected files(multiple files) in Windows File Explorer, as a List
https://autohotkey.com/board/topic/6072 ... ile/page-2

Code: Select all

F3::MsgBox % Explorer_GetSelection()

Explorer_GetSelection(hwnd="")
{
	hwnd := hwnd ? hwnd : WinExist("A")
	WinGetClass class, ahk_id %hwnd%
	if (class="CabinetWClass" or class="ExploreWClass" or class="Progman")
		for window in ComObjCreate("Shell.Application").Windows
			if (window.hwnd==hwnd)
    sel := window.Document.SelectedItems
	for item in sel
	ToReturn .= item.path "`n"
	return Trim(ToReturn,"`n")
}
I would like it to work with the program called "Everything" too, is it possible?

Many Thanks Advanced.
PD: any suggestion of a better code to get the Filepath is very wellcome.
Guest

Re: Get Filepath of selected files in 'Everything'(program)

10 Aug 2018, 00:02

bump. I would be interested as well.
sorry not logged in. quick writeup from mobile.
Guest

Re: Get Filepath of selected files in 'Everything'(program)  Topic is solved

10 Aug 2018, 07:11

Just send, ^+c to copy the selected files to the clipboard*. See the AutoHotkey Clipboard page for a method to store/restore the current clipboard method.
(*see Everything, File menu, copy full name to clipboard)
eduardobedoya
Posts: 45
Joined: 05 May 2016, 14:02

Re: Get Filepath of selected files in 'Everything'(program)

15 Aug 2018, 23:33

thx man, I didn't realize the Everything shortcut Ctrl Shi C, thx very much.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: -Elaphe-, ArkuS, Chunjee, downstairs, Frogrammer and 312 guests