Jump to content

Recommended Posts

Posted

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 ?

Posted

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.

Posted

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

Posted

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.

Posted

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

Posted

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

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

Posted

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

Posted

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 ;)

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
  • Recently Browsing   0 members

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