DarthVega Posted November 14, 2006 Posted November 14, 2006 Is there a dll call or an api function call that can be used in AutoIt that will run the "Sort By Name" command when you right click in the Start Menu?
Moderators big_daddy Posted November 15, 2006 Moderators Posted November 15, 2006 With this you can accomplish a one time sort. RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\") ; You may have to use "Start Menu2" instead. ProcessClose("explorer.exe") While ProcessExists("explorer.exe") Sleep(100) WEnd Run("explorer.exe") To make Windows always alphabetize the list, remove the permissions from the Registry key that controls the sort order for the Start menu. To do so, go to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder Choose Edit | Permissions and click the Advanced button. Deselect the Inherit From Parent The Permission Entries That Apply To Child Objects check box and then click Copy when the Security dialog box pops up. Click OK and clear the Full Control entry for your account and all security groups you are a member of. Leave only Read permission.
DarthVega Posted November 15, 2006 Author Posted November 15, 2006 With this you can accomplish a one time sort. RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\") ; You may have to use "Start Menu2" instead. ProcessClose("explorer.exe") While ProcessExists("explorer.exe") Sleep(100) WEnd Run("explorer.exe") Thanks man, I knew about deleting the registry entry but it didn't always work... this should help.
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