Sign in to follow this  
Followers 0
DarkAngel

A simple query ...

12 posts in this topic

Anyone has any idea how to grey out the cut / copy /paste context menus in the right click ? I am searching for the reg key for that .. Probably its in the shell of the HKLM explorer key .. Am not sure . Anyone got the exact reg key for doing this ?

Share this post


Link to post
Share on other sites



This is the closest I could get atm:

http://www.ivankristianto.com/os/windows/howto-add-item-to-context-menu-on-windows/1206/


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Try this utility ! Posted Image

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Try this utility ! Posted Image

whos talking of utility .. i am asking to uncorporate that in my own script .. If it were for a utilty i wud have posted it in the chat section :/ .. newaz .. thanks ;)

@Almar : thanks :)

Share this post


Link to post
Share on other sites

Another thread:

http://msdn.microsoft.com/en-us/library/cc144171%28VS.85%29.aspx


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

This utility can give you the registry keys that you need to modify,

sorry if it's too complicated for you...

I spend like 15 min searching on google for the correct keys, this utility gives you the correct registery keys?

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

Sorry I had already used this software to disable context menu items, but cut, copy, paste context menus are not in. Posted Image


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

On a similar note, does anyone know how to add items to the context menu that pops up when a CD or other removable drive is inserted?

I'd like to add one of my autoit scripts as an option, for copying photographic files.

Regards,

William

Share this post


Link to post
Share on other sites

On a similar note, does anyone know how to add items to the context menu that pops up when a CD or other removable drive is inserted?

I'd like to add one of my autoit scripts as an option, for copying photographic files.

Regards,

William

Have you already see a Right Click Context Menu that pops up ? Posted Image


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

@DarkAngel

I have found an autohotkey script that should do what you want ;

#SingleInstance Force
#NoTrayIcon
#NoEnv


MF_BYPOSITION := 0x0400, MF_GRAYED := 0x01

Loop {

        WinWait, ahk_class #32770
        WinGetClass, class, A
        If class in Progman,CabinetWClass,ExploreWClass
        {
                SendMessage, 0x01E1
                MenuID := ErrorLevel
                Loop, % DllCall("GetMenuItemCount", UInt, MenuID)
                {
                        if RegExReplace(GetMenuItemText(MenuID, A_Index-1), "&")="Cut"
                                DllCall("EnableMenuItem", "UInt", MenuID, "UInt", A_Index-1, "UInt", MF_BYPOSITION | MF_GRAYED)

                                if RegExReplace(GetMenuItemText(MenuID, A_Index-1), "&")="Cut"
                                DllCall("EnableMenuItem", "UInt", MenuID, "UInt", A_Index-1, "UInt", MF_BYPOSITION | MF_GRAYED)

                                if RegExReplace(GetMenuItemText(MenuID, A_Index-1), "&")="Copy"
                                DllCall("EnableMenuItem", "UInt", MenuID, "UInt", A_Index-1, "UInt", MF_BYPOSITION | MF_GRAYED)

                                if RegExReplace(GetMenuItemText(MenuID, A_Index-1), "&")="Paste"
                                DllCall("EnableMenuItem", "UInt", MenuID, "UInt", A_Index-1, "UInt", MF_BYPOSITION | MF_GRAYED)

                                if RegExReplace(GetMenuItemText(MenuID, A_Index-1), "&")="Delete"
                                DllCall("EnableMenuItem", "UInt", MenuID, "UInt", A_Index-1, "UInt", MF_BYPOSITION | MF_GRAYED)

                                if RegExReplace(GetMenuItemText(MenuID, A_Index-1), "&")="Copy To"
                                DllCall("EnableMenuItem", "UInt", MenuID, "UInt", A_Index-1, "UInt", MF_BYPOSITION | MF_GRAYED)

                                if RegExReplace(GetMenuItemText(MenuID, A_Index-1), "&")="Move To"
                                DllCall("EnableMenuItem", "UInt", MenuID, "UInt", A_Index-1, "UInt", MF_BYPOSITION | MF_GRAYED)

                                if RegExReplace(GetMenuItemText(MenuID, A_Index-1), "&")="Send To"
                                DllCall("EnableMenuItem", "UInt", MenuID, "UInt", A_Index-1, "UInt", MF_BYPOSITION | MF_GRAYED)

                                if RegExReplace(GetMenuItemText(MenuID, A_Index-1), "&")="Rename"
                                DllCall("EnableMenuItem", "UInt", MenuID, "UInt", A_Index-1, "UInt", MF_BYPOSITION | MF_GRAYED)
                }
        }
        WinWaitClose
}

GetMenuItemText(ByRef MenuID, i, MenuStrlen=0){
        global MF_BYPOSITION
        VarSetCapacity(MenuStr, MenuStrLen)
        Len := DllCall("GetMenuString", "UInt", MenuID, "UInt", i, "str", MenuStr, "UInt", MenuStrLen, "UInt", MF_BYPOSITION)
        if(MenuStrLen=0 and Len!=0)
                return GetMenuItemText(MenuID, i, Len+1)
        Else
                return MenuStr
}

If someone know how convert it...

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Try this utility ! Posted Image

whos talking of utility .. i am asking to uncorporate that in my own script .. If it were for a utilty i wud have posted it in the chat section :/ .. newaz .. thanks ;)

@Almar : thanks :)

Share this post


Link to post
Share on other sites

Ahh thanks for that script .. I have worked with ahk before au3 .. I guess i will be able to convert that .. And context menu pop up ? o.O Well of course u can configure the shellex keys and add the shortcut to ur script ;)

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