Keyboard shortcut to paste the dir path active in XYplorer

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
noutters
Posts: 40
Joined: 17 Jan 2006 15:39
Location: Sweden

Keyboard shortcut to paste the dir path active in XYplorer

Post by noutters »

Hello,

use this little Autohotkey script to paste in any application the directory that is active in XYplorer or explorer.
Why is it useful? Say you work in Word and want to save your file. The save menu always starts in "My Documents". If your save location is already in XYplorer, press win+v and the name of the file. Save. No need to point and click like a mad man to browse there.
The key is win+v, but you can of course change it at your convenience.

;----START
#SingleInstance,Force
#Persistent
;#NoTrayIcon
#v::
;xyplorer
IfNotExist, %ActualDirectory%
{
ControlGetText, ActualDirectory, Edit3, ahk_class ThunderRT6FormDC
StringTrimRight, ActualDirectory, ActualDirectory, 1
}

;Explorer
IfNotExist, %ActualDirectory%
ControlGetText, ActualDirectory, Edit1, ahk_class ExploreWClass

IfExist, %ActualDirectory%
SendInPut %ActualDirectory%\

ActualDirectory = ""

return
;----END

Enjoy! :D

PS: save the script as a .ahk file, install Autohotkey (it's free) and run the script

Post Reply