FireFox Posted December 24, 2008 Share Posted December 24, 2008 Hi, (Ive searched with topic on forum and found nothing) I want to add windows context menu to all files (when I click right) For example when you install winrar it add "Extract here" to context menu And I want to do same thing but to all files Thanks for anyhelp. Link to comment Share on other sites More sharing options...
Valuater Posted December 24, 2008 Share Posted December 24, 2008 I think this will help...http://www.autoitscript.com/forum/index.ph...ost&p=829968) Link to comment Share on other sites More sharing options...
sulfurious Posted December 24, 2008 Share Posted December 24, 2008 Easy to do. Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\open] @="Open &With Notepad" [HKEY_CLASSES_ROOT\*\shell\open\command] @="notepad.exe %1" [HKEY_CLASSES_ROOT\*\shell\sandbox] @="Run Sandboxed" [HKEY_CLASSES_ROOT\*\shell\sandbox\command] @="\"C:\\Program Files\\Sandboxie\\Start.exe\" /box:__ask__ \"%1\" %*" Here you see that a key called 'open' has a default value of 'Open &With Notepad'. Remember that the @ means default. A subkey in the open key must exist called command. In this you create another default value with your command line parameter. You can choose to use * for pretty much anything. You could also try to put your values under the HCR keys of File, Folder, or if you have specific extentions in mind, just go to those extentions and add your values there. Sky's the limit on what you can add, all depends on if you need it to be only for certain types, or for everything. Cmenu is a great tool. Mhz is great. He helped me out a lot when I was first messing with autoit. Sul. Link to comment Share on other sites More sharing options...
FireFox Posted December 24, 2008 Author Share Posted December 24, 2008 (edited) @ValuaterThanks but I cant download the file url doesnt exists @sulfuriousThanks your suggestion, i will try it Edited December 24, 2008 by FireFox Link to comment Share on other sites More sharing options...
FireFox Posted December 25, 2008 Author Share Posted December 25, 2008 @sulfurious I dont understand exactly your code, in my regedit I have : - HKEY_CLASSES_ROOT - * - OpenWithList - Notepad.exe - Etc....exe But I want to add context menu for all files like (when you right click) you have Copy/Paste Thanks for anyhelp Link to comment Share on other sites More sharing options...
FireFox Posted December 25, 2008 Author Share Posted December 25, 2008 @Everybody,I found what I wanted and Ive created script for create contextmenu item for all files :$file = FileOpenDialog("Select file to execute in context menu", "", "Application (*.exe)", 1 + 2, @SystemDir & "\Notepad.exe") If Not @error Then $text = InputBox("ContextMenu <d3montools>", "Enter name for context menu item", "New ContextItem", "", 250, 75) If Not @error Then RegWrite("HKEY_CLASSES_ROOT\*\shell") RegWrite("HKEY_CLASSES_ROOT\*\shell\" & $text) RegWrite("HKEY_CLASSES_ROOT\*\shell\" & $text & "\command") RegWrite("HKEY_CLASSES_ROOT\*\shell\" & $text & "\command", "", "REG_SZ", $file & " %1") If Not @error Then MsgBox(64, "Context Menu", "Context menu successfully created !") Else MsgBox(16, "Context Menu", "Error while creating context menu !") Exit EndIf Else Exit EndIf Else Exit EndIfEnjoy ! FireFox Link to comment Share on other sites More sharing options...
FireFox Posted December 26, 2008 Author Share Posted December 26, 2008 How can I create menu in context menu of windows ? For example Ive created item and on this item I have other items like menu Cheers, FireFox. Link to comment Share on other sites More sharing options...
MHz Posted December 27, 2008 Share Posted December 27, 2008 How can I create menu in context menu of windows ?For example Ive created item and on this item I have other items like menuCheers, FireFox.You will need to use a shell extension. You could try a established one like Fast Explorer which uses a ini file for entries or you could try CMenuExtender that I used for CMenu. CMenuExtender is tricky to work with so I would advise Fast Explorer or some other that maybe available. Or if your smart enough, then create your own shell extension to suit.@SulThanks for your words of appreciation. Link to comment Share on other sites More sharing options...
FireFox Posted December 27, 2008 Author Share Posted December 27, 2008 @MHz Thanks for reply Cheers, FireFox. Link to comment Share on other sites More sharing options...
FireFox Posted December 27, 2008 Author Share Posted December 27, 2008 @MHz I can't create ContextMenu... How does it work ? Here is what I've done : Caption : Get Path Command : C:\Documents and Settings\Florian\Bureau\Autoit\PROJECT\ContextMenu\Ads\GetPath.exe Commandline : %1 Icon : shell32.dll,22 Description : Get Path of selected file Options : |x| Append File | | Append Directory Thanks for anyhelp. Cheers, FireFox. 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