yair Posted April 1, 2010 Share Posted April 1, 2010 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 itwill parse it for valid filetypes pass those onto an exe filethe 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 relatedsee Autoit Command Line Parameters. A new approach. Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 1, 2010 Share Posted April 1, 2010 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 Link to comment Share on other sites More sharing options...
yair Posted April 1, 2010 Author Share Posted April 1, 2010 The compiled .exe file Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 1, 2010 Share Posted April 1, 2010 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 Link to comment Share on other sites More sharing options...
yair Posted June 9, 2010 Author Share Posted June 9, 2010 (edited) Compile this and drop things on the resulting .exe file: #include <Array.au3> If $CmdLine[0] Then _ArrayDisplay($CmdLine, "Input $CmdLine") 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 June 9, 2010 by yair Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 9, 2010 Share Posted June 9, 2010 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. 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now