I used the following code to disable "Rename" Right click context menu in Windows 7 in Autohotkey. But I would like to do the same in Autoit, as am new to it, I don't know, can anyone help. #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