/google-drive-context-fix

Dynamically enables/disables Google Drive in context menu when right clicking in Windows Explorer

Primary LanguageAutoHotkeyMIT LicenseMIT

Google Drive "Slow Right Click" Fix

This script dynamically enables/disables the Google Drive options in context menu when right-clicking in Windows Explorer. Easily toggled by simply holding down shift key. This is also typically known as the "extended" right-click context menu.

Normally this isn't necessary and can configured to work this way by just adding an Extended registry key. However, since Google Drive (a.k.a. Backup & Sync) utilizes the ContextMenuHandlers registry key (see below) it cannot be hidden without doing it permanently or using a hack/workaround like this one.

Demo

Example of right-click (faster) and then right-click + shift (slower) but still includes the Google Drive options and only when you actually need them.

Demo

Installation Instructions

Once running, you should see the AutoHotkey icon AutoHotkey System Tray Icon running in your system tray in the bottom right corner of your screen.

1. Configure Registry Permissions

  • Press Windows + R to open the "Run" dialog.

  • Type regedit and press enter.

  • Find and right-click on each of the registry keys listed below and:

    • Select Permissions...
    • Select Users from the list
    • Enable Full Control permissions and click Ok.

    HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\GDContextMenu HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\DriveFS 28 or later HKEY_CLASSES_ROOT*\shellex\ContextMenuHandlers\GDContextMenu HKEY_CLASSES_ROOT*\shellex\ContextMenuHandlers\DriveFS 28 or later

2. Run Script

Quick:

From source:

If you prefer to be safer and also have the ability to tinker with the code, you can also run from source. This only requires that you already have AutoHotkey installed.

3. Run at Startup (Optional)

To ensure this works every time you start your computer (recommended), you'll need to perform a few extra steps:

  • Press the Windows Key + R to open the "Run" dialog.
  • Type (or paste) the following and click OK. This should open the windows "Startup" folder: shell:startup
  • Right click the downloaded .exe or .ahk file and select "Copy".
  • Right click inside the "Startup" folder and select "Paste shortcut".