How to Copy the Full Path to Clipboard via Autohotkey

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
starshows
Posts: 8
Joined: Sun May 23, 2021 1:38 pm

How to Copy the Full Path to Clipboard via Autohotkey

Post by starshows »

How to Copy the Full Path to Clipboard via Autohotkey?
I define the shortcut of the Command of Copy the full path ,F12.
In AHK file,
send,{F12}
sleep,200
filepath := % Clipboard
Msgbox % "Clip" clipboard "-Path-" filepath
it shows "Clip-Path-"
Clipboard and filepath is null

Is anyone know the method?
void
Developer
Posts: 16671
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to Copy the Full Path to Clipboard via Autohotkey

Post by void »

Please try the following:

SendMessage, 0x111, 41007,,, ahk_class EVERYTHING

0x111 is WM_COMMAND
41007 is the command to copy the full path and filename of the current result list focus to the clipboard.

There is also a hidden window in Everything 1.5 with the full path and filename of the current result list focus. (might be useful if you want to get the current focus without clobbering the clipboard)
Post Reply