Jump to content

Create context menu items for .bmp, .gif, .jpg


sshrum
 Share

Recommended Posts

I've been able to create context menu items for all files: "*" but I want to only show my context menus options for the file types my app supports.

This is what I have that works for *all* files using '*':

for $i = 1 to $iEnabledMonitors
    regwrite("HKCR\*\Shell\" & $sAppName & " " & $i,"", "REG_SZ", "Set as display " & $i & " background...")
    regwrite("HKCR\*\Shell\" & $sAppName & " " & $i & "\command","", "REG_SZ", @ScriptFullPath & " " & $i & "=%1")
next

I've tried putting in '.bmp' in place of '*' but the context menu doesn't display when I right click on .bmp files.

What am I doing wrong?

TIA

Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...