DarkAngel Posted September 30, 2010 Share Posted September 30, 2010 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 ? Link to comment Share on other sites More sharing options...
AlmarM Posted September 30, 2010 Share Posted September 30, 2010 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. Link to comment Share on other sites More sharing options...
wakillon Posted September 30, 2010 Share Posted September 30, 2010 (edited) Try this utility ! Edited September 30, 2010 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
DarkAngel Posted September 30, 2010 Author Share Posted September 30, 2010 Try this utility ! 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 Link to comment Share on other sites More sharing options...
AlmarM Posted September 30, 2010 Share Posted September 30, 2010 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. Link to comment Share on other sites More sharing options...
AlmarM Posted September 30, 2010 Share Posted September 30, 2010 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. Link to comment Share on other sites More sharing options...
wakillon Posted September 30, 2010 Share Posted September 30, 2010 Sorry I had already used this software to disable context menu items, but cut, copy, paste context menus are not in. AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
saywell Posted September 30, 2010 Share Posted September 30, 2010 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 Link to comment Share on other sites More sharing options...
wakillon Posted September 30, 2010 Share Posted September 30, 2010 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,WilliamHave you already see a Right Click Context Menu that pops up ? AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
wakillon Posted September 30, 2010 Share Posted September 30, 2010 (edited) @DarkAngelI have found an autohotkey script that should do what you want ;expandcollapse popup#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 September 30, 2010 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
DarkAngel Posted September 30, 2010 Author Share Posted September 30, 2010 Try this utility ! 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 Link to comment Share on other sites More sharing options...
DarkAngel Posted September 30, 2010 Author Share Posted September 30, 2010 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 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