Sign in to follow this  
Followers 0
yair

i want to drag a folder onto a script

6 posts in this topic

hi all,

i'm looking to run an executable which will be run inside an autoit3 script.

the autoit script will sit and wait,

when i drag a folder onto it

will parse it for valid filetypes

pass those onto an exe file

the thing i dont get is how can i pass the %1 as argument.

$CmdLine doesnt seem to work for me using drag.

also, expanding on that, can i get all the nifty modefiers batch have?

i'm sure its all possible, everything is in autoit :(

slightly related

see Autoit Command Line Parameters. A new approach.

Share this post


Link to post
Share on other sites



What, exactly, will you drag and drop the folder onto? The compiled .exe file? The running script's taskbar button? A GUI?

:(


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

The compiled .exe file

Share this post


Link to post
Share on other sites

Compile this and drop things on the resulting .exe file:

#include <Array.au3>

If $CmdLine[0] Then _ArrayDisplay($CmdLine, "Input $CmdLine")

:(


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Compile this and drop things on the resulting .exe file:

#include <Array.au3>

If $CmdLine[0] Then _ArrayDisplay($CmdLine, "Input $CmdLine")

:mellow:

i missed that response, question *was* kinda plain.

expanding on the idea

lets say i want to drag a link - from any of the major browsers - to a compiled script

i asked a similar question on stackoverflow and got nothing.

au3 ftw?

Edited by yair

Share this post


Link to post
Share on other sites

The Windows API treats dragging a web link as "Create Shortcut". It doesn't even open the link if you drop it on the icon for the browsers themselves. I don't know where you would change that behavior.

:mellow:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0