Drag & drop Autohotkey scripts

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
lycanthrope7
Posts: 2
Joined: 04 Oct 2013 11:07

Drag & drop Autohotkey scripts

Post by lycanthrope7 »

Hi all,

I've recently converted from FreeCommander to XYplorer. I'm loving it so far except for one major problem. I'm a prolific Autohotkey user and I have a number of scripts that are activated by dropping files on them. My problem is that XYplorer won't allow me to drop files onto a non-compiled script. The scripts in question work fine in Windows Explorer or FreeCommander, but XYplorer doesn't seem to recognise that an AHK file can receive dropped files.

Has anyone else experienced this problem and, more importantly, overcome it?

Regards,
Tim

System info:
XYplorer 12.8
Windows 7 Ultimate 64-bit

admin
Site Admin
Posts: 66365
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Drag & drop Autohotkey scripts

Post by admin »

Hi and welcome!

I will add "ahk" to the drop target extensions. It will work in the next beta (get it here in the forum later today...)

Don

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: Drag & drop Autohotkey scripts

Post by Enternal »

admin wrote:Hi and welcome!

I will add "ahk" to the drop target extensions. It will work in the next beta (get it here in the forum later today...)

Don
Just out of curiosity, is DropTargetCustomExtensions in the ini file part of that ability?

admin
Site Admin
Posts: 66365
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Drag & drop Autohotkey scripts

Post by admin »

Yep, if you need it before the next beta you can use DropTargetCustomExtensions now. :)

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Drag & drop Autohotkey scripts

Post by Stefan »

Too late :whistle:


Hi Tim and welcome.

Code: Select all

v7.90.0300 - 2009-05-14 14:45
 
    + Tweak: Added the possibility to add more file types to drop stuff 
      on. The format of the values is "dot- [extension-dot-]extension-
      dot". So it could look like this, for example:
        [Settings]
        DropTargetCustomExtensions=.dro.drp.drq.ahk.

admin
Site Admin
Posts: 66365
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Drag & drop Autohotkey scripts

Post by admin »

FYI, in recent versions you don't need the surrounding dots anymore:

Code: Select all

DropTargetCustomExtensions=dro.drp.drq.ahk

lycanthrope7
Posts: 2
Joined: 04 Oct 2013 11:07

Re: Drag & drop Autohotkey scripts

Post by lycanthrope7 »

admin wrote:Hi and welcome!

I will add "ahk" to the drop target extensions. It will work in the next beta (get it here in the forum later today...)

Don
Awesome, thanks. I gotta say, this is a first. I've never had a forum post responded to so fast, and I've never had a solution to my problem available the same day. I'm extremely impressed.

On a side note, I created a custom Open with... command and assigned a keyboard shortcut to it. So now I don't have to drag and drop the files, I just select them and hit the shortcut and XYplorer automatically passes the selected files to the script. It works perfectly and will save me a bit of time.

Thanks again for the awesome product and support.

Regards,
Tim

Nighted
Posts: 463
Joined: 21 Jan 2007 01:58
Location: Gitmo Nation North, Win 7/10/Linux/(x64)

Re: Drag & drop Autohotkey scripts

Post by Nighted »

lycanthrope7 wrote:On a side note, I created a custom Open with... command and assigned a keyboard shortcut to it. So now I don't have to drag and drop the files, I just select them and hit the shortcut and XYplorer automatically passes the selected files to the script. It works perfectly and will save me a bit of time.
You can also do this using the catalog or custom toolbar icons.
I want XY to serve soft ice cream. Please Don, make XY serve soft ice cream.

admin
Site Admin
Posts: 66365
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Drag & drop Autohotkey scripts

Post by admin »

Nighted wrote:
lycanthrope7 wrote:On a side note, I created a custom Open with... command and assigned a keyboard shortcut to it. So now I don't have to drag and drop the files, I just select them and hit the shortcut and XYplorer automatically passes the selected files to the script. It works perfectly and will save me a bit of time.
You can also do this using the catalog or custom toolbar icons.
But not with a keyboard shortcut.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Drag & drop Autohotkey scripts

Post by j_c_hallgren »

lycanthrope7 wrote:Awesome, thanks. I gotta say, this is a first. I've never had a forum post responded to so fast,
Hi and welcome from me too! Yes, Don is awesome! He replied in less than 15 min which isn't unusual but also depends on timing (day/nite/etc).
and I've never had a solution to my problem available the same day.
Not only same day but within the hour! The best I've ever seen from bug report to beta is about 15 min.
I'm extremely impressed.
Thanks again for the awesome product and support.
That's what makes XY SO great a product! The fantastic level of support which we as users try to help with as well.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

Post Reply