alexischeng Posted January 19, 2005 Share Posted January 19, 2005 Hi, I want to know how to create a script in order to drag a file onto it and then the script will execute and open the file? Link to comment Share on other sites More sharing options...
CyberSlug Posted January 19, 2005 Share Posted January 19, 2005 Compile the following script: If $CmdLine[0] > 0 Then $filename = $CmdLine[1] MsgBox(4096,"Information", $filename) EndIf When you drag a file on to the compiled script, a message box should display the file name. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
trids Posted January 19, 2005 Share Posted January 19, 2005 And then you can take the next exciting step too: when you have compiled your app to an EXE, you can use Windows Explorer to associate certain extension(s) with your EXE. EG: you might have *.LXS files that you want your autoit app to process, so select one and press SHIFT as you right-click on it .. then select "Open With.." and point to your EXE. After that, you can either drag-and-drop OR double-click your *.LXS files. HTH Link to comment Share on other sites More sharing options...
alexischeng Posted January 19, 2005 Author Share Posted January 19, 2005 Thanks a lot!!And then you can take the next exciting step too: when you have compiled your app to an EXE, you can use Windows Explorer to associate certain extension(s) with your EXE.EG: you might have *.LXS files that you want your autoit app to process, so select one and press SHIFT as you right-click on it .. then select "Open With.." and point to your EXE.After that, you can either drag-and-drop OR double-click your *.LXS files.HTH <{POST_SNAPBACK}> 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