Sign in to follow this  
Followers 0
FireFox

Add context menu on all files

10 posts in this topic

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.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

@Valuater

Thanks but I cant download the file url doesnt exists :o

@sulfurious

Thanks your suggestion, i will try it :)

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

@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 :)


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

@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
EndIf

Enjoy ! :)

FireFox


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

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.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

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.

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.

@Sul

Thanks for your words of appreciation. :)

Share this post


Link to post
Share on other sites

@MHz

Thanks for reply :)

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

@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.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

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