wolkenloser Posted March 23, 2006 Share Posted March 23, 2006 Hi, I will to do something with files (selected in explorerwindow) by using the right-click-context-menue for using in an Autoitscript (eg. convert files). How do I get the filenames into my script ? Have anyone an idea ? greetings Wolke Link to comment Share on other sites More sharing options...
cppman Posted March 23, 2006 Share Posted March 23, 2006 ? Im not too sure what your asking.... Miva OS Project Link to comment Share on other sites More sharing options...
trids Posted March 23, 2006 Share Posted March 23, 2006 Check out the helpfile for ControlListView HTH Link to comment Share on other sites More sharing options...
wolkenloser Posted March 23, 2006 Author Share Posted March 23, 2006 ? Im not too sure what your asking....Ok, my english is not so good.I will try ist again.1.)I open the windows explorer and select one file.Now I want to get the path and filename of this selected file.2.)I open the windows explorer and select more then one files.Now I want to get the path and filenames of the selected files.I hope you know what I mean.:-)greetingsWolke Link to comment Share on other sites More sharing options...
Xenobiologist Posted March 23, 2006 Share Posted March 23, 2006 HI, FileOpenDialog() returns all the files you´ve selected. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
wolkenloser Posted March 23, 2006 Author Share Posted March 23, 2006 HI,FileOpenDialog() returns all the files you´ve selected.So long,MegaHi,that's right, but so I have to open an Autoitscript before I seclect the files,But the next step after selecting, should be start an Autoitscript by rightklick in the windows explorer Context menue.I won´t start a autoitscript before, but after right klick in the Contextmenue.greetings Wolke Link to comment Share on other sites More sharing options...
MHz Posted March 23, 2006 Share Posted March 23, 2006 This example will do 1 file being sent to your compiled converter.; Check for known incoming parameters If $CMDLINE[0] Then Select Case $CMDLINE[1] = '/register' RegWrite('HKCU\Software\Classes\*\shell\Convert File\Command', '', 'Reg_sz', '"' & @ScriptFullPath & '" "%1"') MsgBox(0, @ScriptName, 'Registered with Shell') Exit Case $CMDLINE[1] = '/unregister' RegDelete('HKCU\Software\Classes\*\shell\Convert File') MsgBox(0, @ScriptName, 'UnRegistered with Shell') Exit EndSelect Else Exit 1 EndIf ; Show parameter selected in explorer MsgBox(0, 'Convert File', 'Commandline = ' & $CMDLINE[1]) Exit ; Prevent 2nd instance Func OnAutoItStart() If UBound(ProcessList(@ScriptName)) > 2 Then Exit EndFuncUse CompiledName.exe /register to add to registry.Use CompiledName.exe /unregister to remove from registry. Link to comment Share on other sites More sharing options...
wolkenloser Posted March 23, 2006 Author Share Posted March 23, 2006 (edited) This example will do 1 file being sent to your compiled converter. ; Check for known incoming parameters If $CMDLINE[0] Then .... With this, you opend my eyes. But now, I decide to go another way. Now, I know if I using "drag & drop" to an CompiledName.exe within the CompiledName.exe can use the filenames by an ARRAY ($CMDLINE). This is an Programmfeature whitch I don´t know before. Now I can write a loop to "convert" my dropped files - It's working. Her a simple eg. #include <Array.au3> _ArrayDisplay($CMDLINE,"") If I copied the CompiledName.exe into the "SEND TO" dir of the current Windows Userprofile, I can "send" selected Files by using the "SEND TO" commant in the windows-explorer-right-click-context-menue. Do you know how i can "registed" ist, so I'll become a direct entry in the windows-explorer-rigt-click-context-menue ? greetings WOLKE Edited March 23, 2006 by wolkenloser Link to comment Share on other sites More sharing options...
Xenobiologist Posted March 23, 2006 Share Posted March 23, 2006 HI,maybe this might help.http://msdn.microsoft.com/library/default....ing/context.aspSo long,Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times 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